File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 pattern =" (assert|break|case|catch|continue|default|do|else|finally|for|if|goto|instanceof|new|return|switch|this|throw|try|while)\b" >
3333 <token type =" Keyword" />
3434 </rule >
35- <rule pattern =" ((?:(?:[^\W\d]|\$)[\w.\[\]$<> ]*\s+)+?)((?:[^\W\d]|\$)[\w$]*)(\s*)(\()" >
35+ <rule pattern =" ((?:(?:[^\W\d]|\$)[\w.\[\]$<> ? ]*\s+)+?)((?:[^\W\d]|\$)[\w$]*)(\s*)(\()" >
3636 <bygroups >
3737 <usingself state =" root" />
3838 <token type =" NameFunction" />
4444 <token type =" NameDecorator" />
4545 </rule >
4646 <rule
47- pattern =" (abstract|const|enum|extends|final|implements|native|private|protected|public|sealed|static|strictfp|super|synchronized|throws|transient|volatile|yield)\b" >
47+ pattern =" (abstract|const|enum|exports| extends|final|implements|native|non-sealed|open|opens|permits| private|protected|provides| public|requires| sealed|static|strictfp|super|synchronized|throws|to| transient|transitive|uses| volatile|with |yield)\b" >
4848 <token type =" KeywordDeclaration" />
4949 </rule >
5050 <rule pattern =" (boolean|byte|char|double|float|int|long|short|void)\b" >
6464 <token type =" KeywordDeclaration" />
6565 <push state =" class" />
6666 </rule >
67+ <rule pattern =" (module)\b" >
68+ <token type =" KeywordDeclaration" />
69+ <push state =" module" />
70+ </rule >
6771 <rule pattern =" (var)(\s+)" >
6872 <bygroups >
6973 <token type =" KeywordDeclaration" />
7074 <token type =" TextWhitespace" />
7175 </bygroups >
7276 <push state =" var" />
7377 </rule >
74- <rule pattern =" (import(?:\s+static)?)(\s+)" >
78+ <rule pattern =" (import(?:\s+(?: static|module) )?)(\s+)" >
7579 <bygroups >
7680 <token type =" KeywordNamespace" />
7781 <token type =" TextWhitespace" />
147151 <pop depth =" 1" />
148152 </rule >
149153 </state >
154+ <state name =" module" >
155+ <rule pattern =" \s+" >
156+ <token type =" Text" />
157+ </rule >
158+ <rule pattern =" ([^\W\d]|\$)[\w$]*" >
159+ <token type =" NameClass" />
160+ <pop depth =" 1" />
161+ </rule >
162+ </state >
150163 <state name =" var" >
151164 <rule pattern =" ([^\W\d]|\$)[\w$]*" >
152165 <token type =" Name" />
You can’t perform that action at this time.
0 commit comments