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:
subtlegradient
2008-07-07 17:17:39 +00:00
parent d99f721b82
commit 8b7b886f82
2 changed files with 43 additions and 11 deletions
+3 -3
View File
@@ -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