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 » Mon Dec 12, 2005 5:15 pm

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: 2446
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij » Wed Dec 14, 2005 2:41 am

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 » Wed Dec 14, 2005 5:04 pm

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 » Fri Aug 10, 2007 7:17 pm

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: 2446
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij » Sun Aug 12, 2007 11:06 pm

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

Cheers Jussi

jussij
Site Admin
Posts: 2446
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij » Mon Sep 17, 2007 1:08 am

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
kuchnie warszawa opinie

Who is online

Users browsing this forum: No registered users and 3 guests