TeXworks / texworks

Main codebase for TeXworks, a simple interface for working with TeX documents
https://tug.org/texworks/
GNU General Public License v2.0
697 stars 127 forks source link

Lua syntax pattern #1040

Open matteofg opened 9 months ago

matteofg commented 9 months ago

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.

josephwright commented 9 months ago

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

matteofg commented 9 months ago

What a pity...