Move decimal back below float. Turns out order is important.

My order broke the coloring of floats because it was coloring
the whole and decimal separately.
This commit is contained in:
Ethan Dalool 2020-09-28 20:16:41 -07:00
parent 802f478a1c
commit 02cbad8603

View file

@ -70,13 +70,6 @@
<string>constant.numeric.integer.octal.python</string>
</dict>
<dict>
<key>match</key>
<string>\b([1-9]+[0-9_]*|0)</string>
<key>name</key>
<string>constant.numeric.integer.decimal.python</string>
</dict>
<dict>
<key>match</key>
<string>\b(?i:(((\d+(\.(?=[^a-zA-Z_])\d*)?|(?&lt;=[^0-9a-zA-Z_])\.\d+)(e[\-\+]?\d+)?))J)</string>
@ -105,6 +98,13 @@
<string>constant.numeric.float.python</string>
</dict>
<dict>
<key>match</key>
<string>\b([1-9]+[0-9_]*|0)</string>
<key>name</key>
<string>constant.numeric.integer.decimal.python</string>
</dict>
<dict>
<key>captures</key>
<dict>