Sotnik666 / JSViews-JSRender-syntax-highlighter

Simple JSViews JSRender syntax highlighter, that makes your templates more readable and colorful
1 stars 0 forks source link

Multi-line support for tags #1

Open alnico2001 opened 2 weeks ago

alnico2001 commented 2 weeks ago

Thank you for creating this plugin, very much appreciated!

One minor issue...

Tags that have multiple lines are not highlighted, such as...

{{!-- 
   Comment line 1
   Comment line 2
--}}

or this...

{^{for data
   filter=~myFilter 
   ^deleted=prop 
   ~deleteState=prop
   ~count=prop.length
}}
Sotnik666 commented 1 week ago

@alnico2001 Right now im on vacation) In a week +- i'll think about multiple lines highlight)

For now it looks like its pretty hrad to do? cuz im using matches of regexp for jsrender, and it seems not to work well with multiline, cuz it just not catches (((