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:
Martin Atkins 2017-05-28 07:20:39 -07:00
parent 76c0ca70f0
commit 63fcfd6b7d

View File

@ -53,6 +53,7 @@ const (
TokenTemplateInterp TokenType = '∫'
TokenTemplateControl TokenType = 'λ'
TokenTemplateSeqEnd TokenType = '∎'
TokenStringLit TokenType = 'S'
TokenHeredoc TokenType = 'H'