Skip to content

Commit

Permalink
Improve literal numbers in tmbundle highlighting
Browse files Browse the repository at this point in the history
Add hexadecimal floating point numbers.  Put them ahead of hexadecimal
integers so they get fully matched instead of just the integer part.
  • Loading branch information
David Iten committed Nov 26, 2018
1 parent fe8d5e6 commit aff2419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Syntaxes/Chapel.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</dict>
<dict>
<key>match</key>
<string>\b((0(b|B)[0-1]([0-1]|_)*)|(0(o|O)[0-7]([0-7]|_)*)|(0(x|X)[0-9a-fA-F]([0-9a-fA-F]|_)*)|((([0-9]([0-9]|_)*\.?([0-9]([0-9]|_)*)?)|(\.[0-9]([0-9]|_)*))((e|E)(\+|-)?[0-9]([0-9]|_)*)?))\b</string>
<string>\b((0(b|B)[0-1]([0-1]|_)*)|(0(o|O)[0-7]([0-7]|_)*)|(0(x|X)((([0-9a-fA-F]([0-9a-fA-F]|_)*\.?([0-9a-fA-F]([0-9a-fA-F]|_)*)?)|(\.[0-9a-fA-F]([0-9a-fA-F]|_)*))((p|P)(\+|-)?[0-9]([0-9]|_)*)?))|(0(x|X)[0-9a-fA-F]([0-9a-fA-F]|_)*)|((([0-9]([0-9]|_)*\.?([0-9]([0-9]|_)*)?)|(\.[0-9]([0-9]|_)*))((e|E)(\+|-)?[0-9]([0-9]|_)*)?))\b</string>
<key>name</key>
<string>constant.numeric.chapel</string>
</dict>
Expand Down

0 comments on commit aff2419

Please sign in to comment.