highlight icon indicating copy to clipboard operation
highlight copied to clipboard

Add Antlers support

Open SRWieZ opened this issue 9 months ago β€’ 14 comments

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 ?

image

πŸ“‹ 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

image

SRWieZ avatar May 16 '24 15:05 SRWieZ