Skip to content

Commit

Permalink
Highlights numbers in java (#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
serhack committed Sep 9, 2023
1 parent 6ddeee2 commit a242abf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lexers/embedded/java.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@
<rule pattern="&#39;\\.&#39;|&#39;[^\\]&#39;|&#39;\\u[0-9a-fA-F]{4}&#39;">
<token type="LiteralStringChar"/>
</rule>
<rule pattern="\d+[LlUu]*">
<token type="LiteralNumberInteger"/>
</rule>
<rule pattern="(\.)((?:[^\W\d]|\$)[\w$]*)">
<bygroups>
<token type="Operator"/>
Expand Down Expand Up @@ -115,4 +118,4 @@
</rule>
</state>
</rules>
</lexer>
</lexer>

0 comments on commit a242abf

Please sign in to comment.