nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit d04b0c123e2b93b743587a9ec21ab8c9a92a9622
parent 21cd953e856a05cf5412d5f7ab04960954623f65
Author: Tom Levy <tomlevy93@gmail.com>
Date:   Sun, 31 Dec 2017 06:12:15 +0000

syntax: go: fix word boundary before dot in number literal

The fragment "\<\." can never match anything because \< matches the
beginning of a word but "." is not a word character.

Replace \< with \B (the empty string not at the edge of a word).

Signed-off-by: Tom Levy <tomlevy93@gmail.com>

Diffstat:
Msyntax/go.nanorc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/syntax/go.nanorc b/syntax/go.nanorc @@ -26,7 +26,7 @@ color brightcyan "//[[:space:]]*\+build[[:space:]]+(([a-zA-Z_0-9]+[[:space:]]*)+ # Literals. color red "\<[0-9]+\.[0-9]*([Ee][+-][0-9]+)?i?\>" color red "\<[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]*\>"