mirror of
https://github.com/kennethreitz-archive/kJS.tmbundle.git
synced 2026-06-05 23:50:19 +00:00
Fixed the illegal number scopes
git-svn-id: http://macromates.com/svn/Bundles/trunk/Review/Bundles/JavaScript.tmbundle@10185 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
This commit is contained in:
@@ -524,20 +524,20 @@
|
||||
<array>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>(?i)\B[-+]?0x[0-9a-f]*\.(\B|\b[0-9]+)</string>
|
||||
<string>(?i)(?:\B[-+]|\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>
|
||||
<string>(?:\B[-+]|\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
|
||||
\b0x[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
|
||||
|
||||
Reference in New Issue
Block a user