Skip to content

Commit

Permalink
Make Pascal keywords case-insensitive
Browse files Browse the repository at this point in the history
FIX: Make Pascal keyword matching case-insensitive.
  • Loading branch information
marijnh committed Dec 5, 2024
1 parent bddb161 commit a62c680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mode/pascal.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function tokenBase(stream, state) {
return "operator";
}
stream.eatWhile(/[\w\$_]/);
var cur = stream.current();
var cur = stream.current().toLowerCase();
if (keywords.propertyIsEnumerable(cur)) return "keyword";
if (atoms.propertyIsEnumerable(cur)) return "atom";
return "variable";
Expand Down

0 comments on commit a62c680

Please sign in to comment.