Skip to content

Commit

Permalink
Merge pull request #17 from daviditen/underscores-in-numbers
Browse files Browse the repository at this point in the history
Improve literal numbers in tmbundle highlighting

[reviewed by @mppf]

* Add binary and octal integers
* Remove C-style suffixes for numbers
* Add support for underscores in numbers
* Add hexadecimal floating point numbers
  • Loading branch information
daviditen authored Nov 28, 2018
2 parents 49417f3 + aff2419 commit 4d408df
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(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\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 4d408df

Please sign in to comment.