syntax: go: sign of exponent in number literal is optional

Signed-off-by: Tom Levy <tomlevy93@gmail.com>
master
Tom Levy 2017-12-31 06:18:31 +00:00 committed by Benno Schulenberg
parent d04b0c123e
commit a794c3318b
1 changed files with 3 additions and 3 deletions

View File

@ -24,9 +24,9 @@ color brightcyan "\<(package|import)\>"
color brightcyan "//[[:space:]]*\+build[[:space:]]+(([a-zA-Z_0-9]+[[:space:]]*)+,[[:space:]]*)*[a-zA-Z_0-9]+"
# Literals.
color red "\<[0-9]+\.[0-9]*([Ee][+-][0-9]+)?i?\>"
color red "\<[0-9]+[Ee][+-][0-9]+i?\>"
color red "\B\.[0-9]+([Ee][+-][0-9]+)?i?\>"
color red "\<[0-9]+\.[0-9]*([Ee][+-]?[0-9]+)?i?\>"
color red "\<[0-9]+[Ee][+-]?[0-9]+i?\>"
color red "\B\.[0-9]+([Ee][+-]?[0-9]+)?i?\>"
color red "\<[0-9]+i\>"
color red "\<[1-9][0-9]*\>"
color red "\<0[0-7]*\>"