From 02cbad860366372487da7bae77a632dac5bb2379 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 28 Sep 2020 20:16:41 -0700 Subject: [PATCH] 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. --- Python/Python.tmLanguage | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Python/Python.tmLanguage b/Python/Python.tmLanguage index 98f0087..1e765c3 100644 --- a/Python/Python.tmLanguage +++ b/Python/Python.tmLanguage @@ -70,13 +70,6 @@ constant.numeric.integer.octal.python - - match - \b([1-9]+[0-9_]*|0) - name - constant.numeric.integer.decimal.python - - match \b(?i:(((\d+(\.(?=[^a-zA-Z_])\d*)?|(?<=[^0-9a-zA-Z_])\.\d+)(e[\-\+]?\d+)?))J) @@ -105,6 +98,13 @@ constant.numeric.float.python + + match + \b([1-9]+[0-9_]*|0) + name + constant.numeric.integer.decimal.python + + captures