Skip to content

Commit

Permalink
add missing type suffixes for nim
Browse files Browse the repository at this point in the history
  • Loading branch information
nnsee authored and alecthomas committed Jan 18, 2023
1 parent d5b3291 commit 3d1bc51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lexers/embedded/nim.xml
Expand Up @@ -44,18 +44,18 @@
</rule>
</state>
<state name="int-suffix">
<rule pattern="\&#39;i(32|64)">
<rule pattern="\&#39;(i|u)(32|64)">
<token type="LiteralNumberIntegerLong"/>
</rule>
<rule pattern="\&#39;i(8|16)">
<rule pattern="\&#39;(u|(i|u)(8|16))">
<token type="LiteralNumberInteger"/>
</rule>
<rule>
<pop depth="1"/>
</rule>
</state>
<state name="float-suffix">
<rule pattern="\&#39;f(32|64)">
<rule pattern="\&#39;(f|d|f(32|64))">
<token type="LiteralNumberFloat"/>
</rule>
<rule>
Expand Down Expand Up @@ -176,7 +176,7 @@
<rule pattern="\b((?![_\d])\w)(((?!_)\w)|(_(?!_)\w))*">
<token type="Name"/>
</rule>
<rule pattern="[0-9][0-9_]*(?=([e.]|\&#39;f(32|64)))">
<rule pattern="[0-9][0-9_]*(?=([e.]|\&#39;(f|d|f(32|64))))">
<token type="LiteralNumberFloat"/>
<push state="float-suffix" state="float-number"/>
</rule>
Expand Down

0 comments on commit 3d1bc51

Please sign in to comment.