[TxMt] Re: Not remembering syntax for certain filetypes

George McGinley Smith george at gsgd.co.uk
Wed Jul 13 07:47:51 UTC 2016


Presumably related to this, was having similar issues. My custom settings
for file types for different folders seemed to be the problem. I have the
following:

[ "templates/{**/,}*" attr.untitled ]
fileType             = 'text.html.mustache'

[ "js/{**/,}*" attr.untitled ]
fileType             = 'source.js'

[ "scss/{**/,}*" attr.untitled ]
fileType             = 'source.scss'

[ "css/{**/,}*" attr.untitled ]
fileType             = 'source.css'

[ attr.untitled ]
fileType             = 'text.html.php.ko2'

Which I'm pretty sure was working at some point. But now the last option in
the list is the one it uses for a new file, and it was also being used for
any PHP files that I opened (so I re-ordered to make it last).

On Mon, 11 Jul 2016 at 20:00 Koen Punt <koen at koenpunt.nl> wrote:

> > OK, I assume the file has a <html> or <!DOCTYPE> tag on first line?
>
> That's correct, and I can work around it by just not closing the file for
> now :)
>
> Thanks!
>
> Sent from Nylas N1
> <https://link.nylas.com/link/33wd9n5m5l3cdcz4d1oikbwcz/local-9d1c2e76-2c54/0?redirect=https%3A%2F%2Fnylas.com%2Fn1%3Fref%3Dn1&r=dGV4dG1hdGVAbGlzdHMubWFjcm9tYXRlcy5jb20=>,
> the extensible, open source mail client.
> On Jul 11 2016, at 3:03 pm, Allan Odgaard <mailinglist at textmate.org>
> wrote:
>
>> On 11 Jul 2016, at 13:57, Koen Punt wrote:
>>
>> > That gives me just a single result, see attachment.
>>
>> OK, I assume the file has a <html> or <!DOCTYPE> tag on first line?
>>
>> As a workaround you can edit the HTML grammar’s firstLineMatch (just
>> clear it), and I think your issue will be fixed, but I will make a
>> workaround for this in upcoming build.
>>
>> _______________________________________________
>> textmate mailing list
>> textmate at lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>> <http://lists.macromates.com/listinfo/textmate&r=dGV4dG1hdGVAbGlzdHMubWFjcm9tYXRlcy5jb20=>
>>
>
> _______________________________________________
> 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/20160713/98041b40/attachment.html>


More information about the textmate mailing list