Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua syntax pattern #1040

Open
matteofg opened this issue Feb 13, 2024 · 2 comments
Open

Lua syntax pattern #1040

matteofg opened this issue Feb 13, 2024 · 2 comments

Comments

@matteofg
Copy link

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
Copy link
Contributor

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
Copy link
Author

What a pity...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants