Skip to content

Commit

Permalink
Improve syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
msujew committed Dec 14, 2023
1 parent a837398 commit 72a8fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugo/content/guides/multi-mode-lexing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 72a8fbb

Please sign in to comment.