From a2a679754c504809c152990a9b9ce472e8832fa0 Mon Sep 17 00:00:00 2001 From: Erik Dubbelboer Date: Wed, 11 Sep 2019 14:37:22 +0200 Subject: [PATCH] Support most of the new number literal proposal See: https://golang.org/doc/go1.13#language https://regexr.com/4kq8m vs https://regexr.com/4kq92 --- Syntaxes/Go.tmLanguage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Syntaxes/Go.tmLanguage b/Syntaxes/Go.tmLanguage index 2e7c704..cf2f20e 100644 --- a/Syntaxes/Go.tmLanguage +++ b/Syntaxes/Go.tmLanguage @@ -513,7 +513,7 @@ match - \b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)\b + (\b|\.)((0(x|X)[0-9a-fA-F_]*)|(0(o|O)[0-7_]*)|(0(b|B)[01_]*)|(([0-9_]+\.?[0-9_]*)|([0-9_]*\.?[0-9_]+))((e|E)(\+|-)?[0-9_]*)?i?) name constant.numeric.go