Closed HeySora closed 1 year ago
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:
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:![image](https://user-images.githubusercontent.com/17962248/226409218-971a63d7-c015-436a-a4bd-160f0d5fc3db.png)