diff --git a/lexers/circular/php.go b/lexers/circular/php.go index 87127a8..d7f8940 100644 --- a/lexers/circular/php.go +++ b/lexers/circular/php.go @@ -1,6 +1,8 @@ package circular import ( + "strings" + . "github.com/alecthomas/chroma" // nolint "github.com/alecthomas/chroma/lexers/h" "github.com/alecthomas/chroma/lexers/internal" @@ -81,4 +83,9 @@ var PHP = internal.Register(DelegatingLexer(h.HTML, MustNewLexer( {`[${\\]`, LiteralStringDouble, nil}, }, }, -))) +).SetAnalyser(func(text string) float32 { + if strings.Contains(text, "