texworks icon indicating copy to clipboard operation
texworks copied to clipboard

Lua syntax pattern

Open matteofg opened this issue 1 year ago • 2 comments

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.

matteofg avatar Feb 13 '24 14:02 matteofg

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).

josephwright avatar Feb 13 '24 14:02 josephwright

What a pity...

matteofg avatar Feb 13 '24 16:02 matteofg