ejs-grammar
ejs-grammar copied to clipboard
Custom Delimeter Support
EJS supports custom delimeters, like we can use <# ejs-code #> instead of <% ejs-code %> or whatever you like. I am using this Javascript EJS extension on VS Code, but it supports only, <% tags , all the formatting goes away as soon as i use custom tag delimeter like <. ejs-code-here .> I suppose this feature should be added.
Currently, Only <% and <? are supported.
I can move this into a further enhancement.
so are there any advancements on this?
We are working on the language server. Once we get this working, we should be able to add a configuration that would take an array of values that you want to be the custom delimiters.
As of right now, still only the 2 are supported. If you want to get a little dirty, you can open the ejs language files, specifically ejs.json and language-configuration.json and change % to "#" that would make it so you can use at least <# #>.
This is not the ideal solution which I will not publish. If you do that, to prevent an overwritten you may want to rename the aliases in the package.json.