mirror of
https://github.com/alecthomas/chroma.git
synced 2025-07-17 01:22:22 +02:00
Add DelegatingLexer.
This commit is contained in:
@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
// PHP lexer.
|
||||
var PHP = internal.Register(MustNewLexer(
|
||||
var PHP = internal.Register(DelegatingLexer(HTML, MustNewLexer(
|
||||
&Config{
|
||||
Name: "PHP",
|
||||
Aliases: []string{"php", "php3", "php4", "php5"},
|
||||
@ -80,4 +80,4 @@ var PHP = internal.Register(MustNewLexer(
|
||||
{`[${\\]`, LiteralStringDouble, nil},
|
||||
},
|
||||
},
|
||||
))
|
||||
)))
|
||||
|
Reference in New Issue
Block a user