nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] [PATCH] syntax: go: fix bugs in number literal regex


From: Tom Levy
Subject: [Nano-devel] [PATCH] syntax: go: fix bugs in number literal regex
Date: Sun, 31 Dec 2017 20:10:01 +1300

Hi nano devs,

Two small patches attached to fix errors in the number literal regex
of syntax/go.nanorc.

Cheers,
Tom


Commit messages:

[PATCH 1/2] syntax: go: fix word boundary before dot in number literal

The regex "\<\.[0-9]+([Ee][+-][0-9]+)?i?\>" can never match anything
because \< matches the beginning of a word but "." is not a word
character.

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

[PATCH 2/2] syntax: go: sign of exponent in number literal is optional

Attachment: 0001-syntax-go-fix-word-boundary-before-dot-in-number-lit.patch
Description: Text Data

Attachment: 0002-syntax-go-sign-of-exponent-in-number-literal-is-opti.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]