Skip to content

Commit

Permalink
Revert "Zig: Detect visual separators in integer literals"
Browse files Browse the repository at this point in the history
This reverts commit d2a1cc4.
  • Loading branch information
alecthomas committed Oct 29, 2020
1 parent 1701c8b commit 05ac2f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lexers/z/zig.go
Expand Up @@ -30,10 +30,10 @@ var Zig = internal.Register(MustNewLexer(
{`0x[0-9a-fA-F]+\.?[pP][\-+]?[0-9a-fA-F]+`, LiteralNumberFloat, nil},
{`[0-9]+\.[0-9]+([eE][-+]?[0-9]+)?`, LiteralNumberFloat, nil},
{`[0-9]+\.?[eE][-+]?[0-9]+`, LiteralNumberFloat, nil},
{`0b([01](?:_?[01])+)+`, LiteralNumberBin, nil},
{`0o([0-7](?:_?[0-7])+)+`, LiteralNumberOct, nil},
{`0x([0-9a-fA-F](?:_?[0-9a-fA-F])+)+`, LiteralNumberHex, nil},
{`([0-9](?:_?[0-9])+)+`, LiteralNumberInteger, nil},
{`0b[01]+`, LiteralNumberBin, nil},
{`0o[0-7]+`, LiteralNumberOct, nil},
{`0x[0-9a-fA-F]+`, LiteralNumberHex, nil},
{`[0-9]+`, LiteralNumberInteger, nil},
{`@[a-zA-Z_]\w*`, NameBuiltin, nil},
{`[a-zA-Z_]\w*`, Name, nil},
{`\'\\\'\'`, LiteralStringEscape, nil},
Expand Down

0 comments on commit 05ac2f7

Please sign in to comment.