Page 1 of 1

LUA block comment

Posted: Mon Dec 12, 2005 5:15 pm
by la_piaga
zeus (i'm trying version 3.95p) doesn't hilight lua block comments "--[[" since it seems to ignore everything after the line comment "--".

Posted: Wed Dec 14, 2005 2:41 am
by jussij
You need to edit the Lua document type and in the Keywords section enter the following values:

Comment Start: --[
Comment End: ]]
Line Comment #1: --

With these values entered the following example code them seems to color the block comment and line comment sections correctly:

Code: Select all

function key_macro()

  -- this is a line comment
  document = is_document()

  --[[ 
    This is a block comment
  ]] 
end

key_macro() -- run the macro
Cheers Jussi

Posted: Wed Dec 14, 2005 5:04 pm
by la_piaga
Since the lua highliter was already implemented I thought it was a flaw of the editor itself and didn't think of a lack of definition in the document type configuration.
Ok, adding the block comment operator it works ;)

LUA: Arrays are not comment blocks

Posted: Fri Aug 10, 2007 7:17 pm
by Zeksie
I'm having an issue in LUA where double nested array references are also matching the end of comment and highlighting as block comment.

For example:
array[myVal[2]]

The ]] gets highlighted.

Posted: Sun Aug 12, 2007 11:06 pm
by jussij
Thanks for the bug report. This will be fixed in the next Zeus patch ;)

Cheers Jussi

Posted: Mon Sep 17, 2007 1:08 am
by jussij
This bug is fixed in the latest Zeus 3.96j patch found here: http://www.zeusedit.com/forum/viewtopic.php?t=1251

Cheers Jussi