Posted 19 years ago
by Stephan Ziep
Hi,
I want do create a language defnition for the LUA scripting Langage. It works pretty well so far. I implemented a custom semantic parser to perform outling etc.
Now i want BracketHighliting.
As Lua has no brackets, i want to highlite its reserved words like 'function', 'if', 'do' etc.
The Problem is that all blocks end with the same reserved word 'end'. The difficulty is hereby to match an 'end' with the corresponding opening statemant or vice versa. Is there a way to define this in the language definition file via the Scopes 'BracketHighlight' attribute? Do you have any suggestions?
Thanks in advance
Stephan Ziep
I want do create a language defnition for the LUA scripting Langage. It works pretty well so far. I implemented a custom semantic parser to perform outling etc.
Now i want BracketHighliting.
As Lua has no brackets, i want to highlite its reserved words like 'function', 'if', 'do' etc.
The Problem is that all blocks end with the same reserved word 'end'. The difficulty is hereby to match an 'end' with the corresponding opening statemant or vice versa. Is there a way to define this in the language definition file via the Scopes 'BracketHighlight' attribute? Do you have any suggestions?
Thanks in advance
Stephan Ziep