Skip to content

Commit

Permalink
Minor fix for name constants
Browse files Browse the repository at this point in the history
  • Loading branch information
francislavoie authored and alecthomas committed May 17, 2020
1 parent 8785122 commit 500529f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lexers/c/caddyfile.go
Expand Up @@ -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},
Expand Down

0 comments on commit 500529f

Please sign in to comment.