From 500529fd43c17001ae527379fd925715c2e9657c Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Sat, 16 May 2020 16:14:23 -0400 Subject: [PATCH] Minor fix for name constants --- lexers/c/caddyfile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexers/c/caddyfile.go b/lexers/c/caddyfile.go index 4e3936c..219c90f 100644 --- a/lexers/c/caddyfile.go +++ b/lexers/c/caddyfile.go @@ -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},