LUA block comment

If reporting a bug with the Zeus IDE please post the details here. Please do not post questions here.
Post Reply
la_piaga
Posts: 2
Joined: Mon Dec 12, 2005 5:10 pm

LUA block comment

Post 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 "--".
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post 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
la_piaga
Posts: 2
Joined: Mon Dec 12, 2005 5:10 pm

Post 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 ;)
Zeksie
Posts: 1
Joined: Fri Aug 10, 2007 7:14 pm

LUA: Arrays are not comment blocks

Post 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.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Thanks for the bug report. This will be fixed in the next Zeus patch ;)

Cheers Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post 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
Post Reply