Skip to content

Commit

Permalink
Allow underscores in integers/floats per v0.4.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
mojombo authored and infininight committed Feb 22, 2015
1 parent ce7f700 commit 7498fbe
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Syntaxes/TOML.tmLanguage
Expand Up @@ -328,15 +328,9 @@
</dict>
<dict>
<key>match</key>
<string>\G[+-]?[0-9]+\.[0-9]+([eE][+-]?(0|[1-9][0-9]*))?</string>
<string>\G([+-]?(0|([1-9](([0-9]|_[0-9])+)?)))(\.([0-9](([0-9]|_[0-9])+)?))?([eE]([+-]?(0|([1-9](([0-9]|_[0-9])+)?))))?</string>
<key>name</key>
<string>constant.numeric.float.toml</string>
</dict>
<dict>
<key>match</key>
<string>\G[+-]?(0|[1-9][0-9]*)([eE][+-]?(0|[1-9][0-9]*))?</string>
<key>name</key>
<string>constant.numeric.integer.toml</string>
<string>constant.numeric.toml</string>
</dict>
<dict>
<key>begin</key>
Expand Down

0 comments on commit 7498fbe

Please sign in to comment.