-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: parse mustache expressions inside attribute value strings
Not supporting this was reported in #2 Note that we use a short-cut here to enable mustache statements inside of a string that disallows a `{` to appear inside a "concat statement". Technically this should be allowed, though I would say it's quite rare. Issue #3 was files to keep track of eventually fixing that, though it will likely require moving the scanner into C to pull that off. The problem is that `{` alone is safe, but `{{` together is not, and I'm not sure you can write a regex that TreeSitter supports that can capture that correctly.
- Loading branch information
1 parent
1c3d01c
commit 43d0dbd
Showing
5 changed files
with
1,208 additions
and
776 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.