You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A function named "eval" will be highlighted correctly when it's defined. But when you call it, it will be highlighted as if the "val" part of the function is a keyword:
I have also been able to reproduce this behavior with other functions that contain keywords inside their names, like is_a_member, as long as the "keyword" comes at the end of the name:
Also, if the line is eval (x + 4), then the function is highlighted correctly (the val part is not seen as a keyword). Only when the line looks like eval x does the highlighting get it wrong. In other words, when it would match a regex that looks like correct use of the val keyword.
Adding a simple "start-of-word" lookahead to the keyword regex will probably solve this issue.
The text was updated successfully, but these errors were encountered:
A function named "eval" will be highlighted correctly when it's defined. But when you call it, it will be highlighted as if the "val" part of the function is a keyword:
I have also been able to reproduce this behavior with other functions that contain keywords inside their names, like
is_a_member
, as long as the "keyword" comes at the end of the name:Also, if the line is
eval (x + 4)
, then the function is highlighted correctly (theval
part is not seen as a keyword). Only when the line looks likeeval x
does the highlighting get it wrong. In other words, when it would match a regex that looks like correct use of theval
keyword.Adding a simple "start-of-word" lookahead to the keyword regex will probably solve this issue.
The text was updated successfully, but these errors were encountered: