Skip to content

Commit

Permalink
[pascal mode] Make keywords case-insensitive
Browse files Browse the repository at this point in the history
Closes #7113
  • Loading branch information
marijnh committed Dec 5, 2024
1 parent deee5c0 commit b60e456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mode/pascal/pascal.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ CodeMirror.defineMode("pascal", function() {
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 b60e456

Please sign in to comment.