[TxMt] Re: XHTML tags flagged as errors

Jacob Carlborg doob at me.com
Thu Jul 26 18:32:11 UTC 2018



> On 25 Jul 2018, at 05:49, 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.

You can create a new grammar that inherits from the HTML grammar and makes your custom changes. Have a look at the C++ grammar which includes the C grammar.

--
/Jacob Carlborg

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20180726/3ab21fca/attachment.html>


More information about the textmate mailing list