1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-03-17 20:58:08 +02:00

Minor fix for name constants

This commit is contained in:
Francis Lavoie 2020-05-16 16:14:23 -04:00 committed by Alec Thomas
parent 8785122ef8
commit 500529fd43

View File

@ -121,7 +121,7 @@ var caddyfileCommon = Rules{
},
"base": {
Include("comments"),
{`on|off|first|last|before|after|internal|strip_prefix|strip_suffix|replace`, NameConstant, nil},
{`(on|off|first|last|before|after|internal|strip_prefix|strip_suffix|replace)\b`, NameConstant, nil},
{`(https?://)?([a-z0-9.-]+)(:)([0-9]+)`, ByGroups(Name, Name, Punctuation, LiteralNumberInteger), nil},
{`[a-z-]+/[a-z-+]+`, LiteralString, nil},
{`[0-9]+[km]?\b`, LiteralNumberInteger, nil},