Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit 3ef0438

Browse files
committed
Use moduleKeyword tag
1 parent 62104d6 commit 3ef0438

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"sideEffects": false,
2727
"license": "MIT",
2828
"dependencies": {
29-
"@codemirror/highlight": "^0.19.0",
29+
"@codemirror/highlight": "^0.19.7",
3030
"@codemirror/language": "^0.19.0",
3131
"@lezer/java": "^0.15.0"
3232
},

src/java.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ export const javaLanguage = LRLanguage.define({
3030
instanceof: t.operatorKeyword,
3131
this: t.self,
3232
"new super assert open to with void": t.keyword,
33-
"class interface extends implements module package import enum": t.definitionKeyword,
33+
"class interface extends implements enum": t.definitionKeyword,
34+
"module package import": t.moduleKeyword,
3435
"switch while for if else case default do break continue return try catch finally throw": t.controlKeyword,
3536
["requires exports opens uses provides public private protected static transitive abstract final " +
3637
"strictfp synchronized native transient volatile throws"]: t.modifier,

0 commit comments

Comments
 (0)