[TxMt] Re: XHTML tags flagged as errors
Curt Sellmer
sellmerfud at gmail.com
Wed Jul 25 03:49:15 UTC 2018
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.
On Tue, Jul 24, 2018 at 10:40 PM Michael Sheets <mummer at whitefalls.org>
wrote:
> On Jul 24, 2018, at 12:17 PM, Curt Sellmer <sellmerfud at gmail.com> wrote:
> >
> > I use an XHTML template language for my web applications that allows me
> to define my own tags such as <s:embed>...</s:embed>. I set the language
> for these files to HTML so that embedded stylesheets, scripts, etc. are
> formatted correctly.
> >
> > With HTML bundle update yesterday, these custom tags are now highlighted
> as errors with the scope invalid.illegal.unrecognized-tag.html
> >
> > This has worked great for me for at least the last eight years at
> least. This new behavior is rather annoying.
> >
> > Is there a way that I can avoid the HTML bundle flagging these custom
> tags as errors?
>
> So when I was redoing the grammar I did not do anything for XHTML
> compatibility. It should mostly work, but my plan for XHTML is to either
> let it use the XML grammar or a variant of it specific for XHTML. Because
> of the differences between the standard HTML and XHTML I think this is the
> best solution. But I don’t have a good grasp on what the common use case
> for XHTML is these days, it may solely be template cases such as in your
> case.
>
> This said your case is different because you are talking about using a
> template system. The HTML grammar nor a potential XHTML grammar won’t be
> designed to support template tags. For template languages you will need a
> specific grammar to properly match and recognize the tags. Can you post a
> link to the template system you are using and your general usage of XHTML
> in general so I can get a feel of it? (If you don’t want to post it
> publicly you can email me at support.)
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20180724/f867e88d/attachment.html>
More information about the textmate
mailing list