[TxMt] Re: including rules from another language's repository
Matthew Johnson
musical.matthew at mac.com
Fri May 25 20:33:25 UTC 2012
> There should be many examples (eg HTML should include JS and CSS etc), attached a short custom one for Lua that includes the regular Lua syntax at the end.
This is including the entire language. I am trying to include specific rules from the repository for a language. I haven't seen any examples of that...
>
> Gerd
>
>
>
> { patterns = (
> { match = '^#!/.*\blua\b';
> name = 'variable.other.register';
> },
> { captures = {
> 1 = { name = 'comment.line.dashdash.lua'; };
> 2 = { name = 'punctuation.definition.comment.lua'; };
> };
> match = '^((--).*$\n?)';
> name = 'meta.comment.full-line.lua';
> },
> { begin = '^(?=(\t| {4}))';
> end = '(?=[^\t\s])';
> name = 'meta.leading-tabs';
> patterns = (
> { captures = {
> 1 = { name = 'meta.odd-tab'; };
> 2 = { name = 'meta.even-tab'; };
> };
> match = '(\t| {4})(\t| {4})?';
> },
> );
> },
> { include = 'source.lua'; },
> );
> }
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
More information about the textmate
mailing list