texworks
texworks copied to clipboard
Lua syntax pattern
In a Lua script, comments are introduced via two dashes:
-- two lines
-- of comments
You can also use a different syntax:
--[[
two lines
of comments
--]]
However, in the latter case TeXworks does not properly recognize comments. It would be good to be able to improve the Lua syntax pattern to resolve this issue.
Syntax highlighting in TeXworks is line-based: I couldn't think of a way to do this (also, regexes aren't suitable for bracket matching).
What a pity...