From 72a8fbb0bca4ea8770cb37881fbbe7983c2fa533 Mon Sep 17 00:00:00 2001 From: Mark Sujew Date: Mon, 13 Feb 2023 00:18:42 +0000 Subject: [PATCH] Improve syntax --- hugo/content/guides/multi-mode-lexing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugo/content/guides/multi-mode-lexing.md b/hugo/content/guides/multi-mode-lexing.md index 203f2131..8f605c8c 100644 --- a/hugo/content/guides/multi-mode-lexing.md +++ b/hugo/content/guides/multi-mode-lexing.md @@ -143,7 +143,7 @@ export class CustomTokenBuilder extends DefaultTokenBuilder { ``` With this change in place, the parser will work as expected. There is one last issue which we need to resolve in order to get everything working perfectly. -When inspecting our AST, the `TemplateLiteral` object will contain strings with input artifacts in there (mainly `` ` ``, `{` and `}`). +When inspecting our AST, the `TemplateLiteral` object will contain strings with input artifacts in there; mainly `` ` ``, `{` and `}`. These aren't actually part of the semantic value of these strings, so we should get rid of them. We will need to create a custom `ValueConverter` and remove these artifacts: