mirror of
https://github.com/kennethreitz-archive/kJS.tmbundle.git
synced 2026-06-05 23:50:19 +00:00
.999 numbers.invalid scopes for octal and hex. -999 and +999 numbers
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10184 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
This commit is contained in:
@@ -512,7 +512,7 @@
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\b(Infinity|NaN|undefined)\b</string>
|
||||
<string>\b(NaN|undefined)\b</string>
|
||||
<key>name</key>
|
||||
<string>constant.language.js</string>
|
||||
</dict>
|
||||
@@ -524,10 +524,33 @@
|
||||
<array>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\b((0(x|X)[0-9a-fA-F]+)|([0-9]+(\.[0-9]+)?([eE][-+]?[0-9]+)?))\b</string>
|
||||
<string>(?i)\B[-+]?0x[0-9a-f]*\.(\B|\b[0-9]+)</string>
|
||||
<key>name</key>
|
||||
<string>invalid.illegal.numeric.hex.js</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>\B[-+]?0[0-9]+\.(\B|\b[0-9]+)</string>
|
||||
<key>name</key>
|
||||
<string>invalid.illegal.numeric.octal.js</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>(?xi)(?:\B[-+])?(?:
|
||||
0x[0-9a-f]* # HEX
|
||||
|( \B\.[0-9]+ # EG: .999
|
||||
| \b[0-9]+ (\.[0-9]*)? # EG: 999.999 or 999. or 999
|
||||
)(e[-+]?[0-9]+)? # EG: e+123 or E-123
|
||||
)</string>
|
||||
<key>name</key>
|
||||
<string>constant.numeric.js</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>(?:\B[-+]|\b)(Infinity)\b</string>
|
||||
<key>name</key>
|
||||
<string>constant.language.js</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>core-punctuation</key>
|
||||
|
||||
Reference in New Issue
Block a user