Skip to content

Commit

Permalink
Fix strings that start with a numeric
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanJang committed Apr 5, 2015
1 parent 728b188 commit 55cffc2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions KSP configuration.JSON-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@
"match": "(?<==)(\\s*([Tt]rue|[Ff]alse))",
"comment": "'True' or 'False' after an equal sign is a boolean."
},
{
"name": "constant.numeric",
"match": "(?<=[=,\\s])(\\s*-?[0-9\\.]+E?-?[0-9\\.]*)",
"comment": "Numeric characters, including scientific notation, is a number."
},
{
"name": "constant.numeric",
"match": "(?<==)(\\s*(NaN|Infinity|None))",
Expand All @@ -60,6 +55,11 @@
"match": "(?<=:)([A-Za-z0-9]*)",
"comment": "Alphanumeric characters after a colon is a function."
},
{
"name": "constant.numeric",
"match": "(?<=[=,\\s])(\\s*-?[0-9\\.]+E?-?[0-9\\.]*)",
"comment": "Numeric characters, including scientific notation, is a number."
},
{
"name": "entity.name.class",
"match": "[A-Za-z0-9!@%\\*_\\./]*",
Expand Down
16 changes: 8 additions & 8 deletions KSP configuration.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@
<key>name</key>
<string>constant.numeric</string>
</dict>
<dict>
<key>comment</key>
<string>Numeric characters, including scientific notation, is a number.</string>
<key>match</key>
<string>(?&lt;=[=,\s])(\s*-?[0-9\.]+E?-?[0-9\.]*)</string>
<key>name</key>
<string>constant.numeric</string>
</dict>
<dict>
<key>comment</key>
<string>'NaN', 'Infinity', or 'None' after an equal sign is a non-numeric constant.</string>
Expand All @@ -100,6 +92,14 @@
<key>name</key>
<string>support.function</string>
</dict>
<dict>
<key>comment</key>
<string>Numeric characters, including scientific notation, is a number.</string>
<key>match</key>
<string>(?&lt;=[=,\s])(\s*-?[0-9\.]+E?-?[0-9\.]*)</string>
<key>name</key>
<string>constant.numeric</string>
</dict>
<dict>
<key>comment</key>
<string>Anything else matching these symbols is a class name.</string>
Expand Down

0 comments on commit 55cffc2

Please sign in to comment.