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@lists.macromates.com http://lists.macromates.com/listinfo/textmate