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
Name of the lexer Javascript
Code sample
if (something) { console.log('something'); }
Additional context if is mistakenly being treated as a function due to the parenthesis next to it.
if
The same happens to for, while, switch, and other keywords requiring a pair of parenthesis after.
for
while
switch
Here is a preview with keywords in red, and functions in cyan:
The text was updated successfully, but these errors were encountered:
Workaround for rouge-ruby/rouge#1934
7d37e96
javascript: Fix an issue where some keywords like "for" and "if" are …
584ea52
…mistakenly recognized as functions fix rouge-ruby#1934
b274a10
…mistakenly recognized as functions (#1938) fix #1934
Successfully merging a pull request may close this issue.
Name of the lexer
Javascript
Code sample
Additional context
if
is mistakenly being treated as a function due to the parenthesis next to it.The same happens to
for
,while
,switch
, and other keywords requiring a pair of parenthesis after.Here is a preview with keywords in red, and functions in cyan:
The text was updated successfully, but these errors were encountered: