highlight
highlight copied to clipboard
Add Antlers support
Hi Brendt! Love your work with console and highlight
Here is my contribution to support Antlers template language of Statamic.
It was pretty fun to code. I like that way we can write tests in attributes. I reused some Patterns from Xml and PHP, hope it's ok.
I noticed that there is no CSS for operators, is that a bug ?
βNeed help on one edge case
I tried several things to fix this bug without success. Is there a way to prevent injection into another injection ?
One thing I didn't tried is to put #[After]
on AntlersCommentInjection
and remove other injections from $content
, is this the way ?
π Before merging
- [ ] Fix antlers comments having antlers tags being highlighted
- [x] Write more tests
- [x] If #123 passes there is a little changes to make
Until you have time to review, here is a little preview π
ποΈ Preview
http://localhost:8080/?target=targets/antlers.md