zclsyntax: include a token for the end of a template sequence
Although this end symbol appears as just a close-brace in source, it's worth differentiating it because the scanner must differentiate it anyway (to recognize moving back into template-scanning mode) and it avoids the parser from having to similarly re-recognize the difference.
This commit is contained in:
parent
76c0ca70f0
commit
63fcfd6b7d
@ -53,6 +53,7 @@ const (
|
||||
|
||||
TokenTemplateInterp TokenType = '∫'
|
||||
TokenTemplateControl TokenType = 'λ'
|
||||
TokenTemplateSeqEnd TokenType = '∎'
|
||||
|
||||
TokenStringLit TokenType = 'S'
|
||||
TokenHeredoc TokenType = 'H'
|
||||
|
Loading…
Reference in New Issue
Block a user