[TxMt] Re: XHTML tags flagged as errors
Michael Sheets
mummer at whitefalls.org
Fri Jul 27 05:01:14 UTC 2018
On Jul 24, 2018, at 10:49 PM, Curt Sellmer <sellmerfud at gmail.com> wrote:
>
> I am using a homegrown template system that I developed for Scala based framework. So there is no link to point you toward.
> If the HTML grammar would simply allow tag snames that begin with a prefix followed by a colon that would be sufficient.
>
> I see that there are rules in the grammar with the scope names 'meta.tag.custom.start.html' and 'meta.tag.custom.end.html'
> Could those rules be modified to include these types of tag names without causing problems elsewhere?
> If so, I think that would do the trick.
Originally took this off-list but bring back to the list with a sample grammar which implements a quick version of this:
https://gist.github.com/infininight/b03b1354ae402f6170814af88efed26f
(In the format you get in the bundle editor, to use create a personal bundle then a new language and paste in the contents.)
This will probably need some fiddling one some areas to get right, especially in the ${} section as I wasn’t sure what was in there. But this should be a good start to work from and might help anyone else needing something similar.
--
Michael Sheets
More information about the textmate
mailing list