Skip to content

Commit a62c680

Browse files
committed
Make Pascal keywords case-insensitive
FIX: Make Pascal keyword matching case-insensitive.
1 parent bddb161 commit a62c680

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/pascal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function tokenBase(stream, state) {
5858
return "operator";
5959
}
6060
stream.eatWhile(/[\w\$_]/);
61-
var cur = stream.current();
61+
var cur = stream.current().toLowerCase();
6262
if (keywords.propertyIsEnumerable(cur)) return "keyword";
6363
if (atoms.propertyIsEnumerable(cur)) return "atom";
6464
return "variable";

0 commit comments

Comments
 (0)