We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example, broken.lua:
broken.lua
--[[ This is a multi-line comment, not code. ]]
Expected output:
--------------------------------------------------------------------------------- Language Files Lines Blank Comment Code --------------------------------------------------------------------------------- Lua 1 7 0 7 0
Actual output:
--------------------------------------------------------------------------------- Language Files Lines Blank Comment Code --------------------------------------------------------------------------------- Lua 1 7 0 1 6
This occurs because the opening character sequence of a multi-line comment has the character sequence of a single-line comment as its prefix:
Lua => SM("--", "--[[", "]]"),
I ran into this bug while adding the comment patterns for a language which uses # for single-line comments, and #| and |# for multi-line comments.
#
#|
|#
The text was updated successfully, but these errors were encountered:
Oh, very interesting. Good catch. I may have to rethink some things.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
For example,
broken.lua
:Expected output:
Actual output:
This occurs because the opening character sequence of a multi-line comment has the character sequence of a single-line comment as its prefix:
I ran into this bug while adding the comment patterns for a language which uses
#
for single-line comments, and#|
and|#
for multi-line comments.The text was updated successfully, but these errors were encountered: