Skip to content

Commit

Permalink
HTML: support PHP template tags
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Nov 29, 2023
1 parent d9e1e7b commit 69c7837
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions html/lex.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ func (l *Lexer) Next() (TokenType, []byte) {
} else if c == '!' {
l.r.Move(2)
return l.readMarkup()
} else if 0 < len(l.tmplBegin) && l.at(l.tmplBegin...) {
l.r.Move(len(l.tmplBegin))
l.moveTemplate()
l.hasTmpl = true
} else if c == '?' {
l.r.Move(1)
return CommentToken, l.shiftBogusComment()
Expand Down

0 comments on commit 69c7837

Please sign in to comment.