From b81b418493acd99f2ba8e4adf5eb887547a13369 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Wed, 22 Jul 2020 13:33:14 -0700 Subject: [PATCH] Fix highlighting of base 10 numbers This was incorrectly highlighting the following: ```yaml ref: 3.8.3 # should be a string, highlighted as a number ``` --- Syntaxes/YAML.tmLanguage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Syntaxes/YAML.tmLanguage b/Syntaxes/YAML.tmLanguage index 4a1b7b1..38d1861 100644 --- a/Syntaxes/YAML.tmLanguage +++ b/Syntaxes/YAML.tmLanguage @@ -811,7 +811,7 @@ ) | ( (?x: - [-+]? (?: [0-9] [0-9_]*)? \. [0-9.]* (?: [eE] [-+] [0-9]+)? # (base 10) + [-+]? (?: [0-9] [0-9_]*)? \. [0-9]* (?: [eE] [-+] [0-9]+)? # (base 10) | [-+]? [0-9] [0-9_]* (?: :[0-5]?[0-9])+ \. [0-9_]* # (base 60) | [-+]? \. (?: inf|Inf|INF) # (infinity) | \. (?: nan|NaN|NAN) # (not a number) @@ -935,7 +935,7 @@ ) | ( (?x: - [-+]? (?: [0-9] [0-9_]*)? \. [0-9.]* (?: [eE] [-+] [0-9]+)? # (base 10) + [-+]? (?: [0-9] [0-9_]*)? \. [0-9]* (?: [eE] [-+] [0-9]+)? # (base 10) | [-+]? [0-9] [0-9_]* (?: :[0-5]?[0-9])+ \. [0-9_]* # (base 60) | [-+]? \. (?: inf|Inf|INF) # (infinity) | \. (?: nan|NaN|NAN) # (not a number)