1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-07-17 01:22:22 +02:00

Add DelegatingLexer.

This commit is contained in:
Alec Thomas
2017-09-30 12:44:22 +10:00
parent 8f289191c9
commit 15a009f0fc
4 changed files with 245 additions and 3 deletions

View File

@ -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},
},
},
))
)))