Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- array =
- { begin = '(\()';
- end = '(\))';
- captures = { 1 = { name = 'keyword.operator.array.tm-language-def'; }; };
- patterns = (
- { include = '#comment'; },
- { begin = '(?=[^\s,])';
- end = '(,)|(?=\))';
- endCaptures = { 1 = { name = 'keyword.operator.array-separator.tm-language-def'; }; };
- patterns = (
- { match = '\s+(?=//|/\*)'; },
- { include = '#comment'; },
- { name = 'invalid.illegal.missing-comma.tm-language-def';
- begin = '[[^\n]&&\s](?!\s*(,|\)|$)).*';
- end = '^(?=not)possible$';
- },
- { include = '#any'; },
- );
- },
- { include = '#catch-all'; },
- );
- };
- catch-all = { patterns = (
- { match = '\s+'; },
- { name = 'invalid.illegal.unrecognized-character.tm-language-def';
- match = '.';
- },
- );
- };
- comment-keyword =
- { begin = '\b(comment)\s*(=)';
- end = '(;)';
- beginCaptures =
- { 1 = { name = 'support.constant.tm-language-def'; };
- 2 = { name = 'keyword.operator.dictionary.tm-language-def'; };
- };
- endCaptures = { 1 = { name = 'keyword.operator.dictionary.tm-language-def'; }; };
- patterns = (
- { name = 'string.quoted.single.tm-language-def';
- begin = "'";
- end = "'";
- contentName = 'comment.block.string.tm-language-def';
- },
- { name = 'string.quoted.double.tm-language-def';
- begin = '"';
- end = '"';
- contentName = 'comment.block.string.tm-language-def';
- },
- { include = '#comment'; },
- { include = '#catch-all'; },
- );
- };
- dictionary =
- { begin = '(\{)';
- end = '(\})';
- captures = { 1 = { name = 'keyword.operator.dictionary.tm-language-def'; }; };
- patterns = (
- { include = '#string'; },
- { include = '#comment'; },
- { begin = '(=)';
- end = '(;)';
- captures = { 1 = { name = 'keyword.operator.dictionary.tm-language-def'; }; };
- patterns = ( { include = '#any'; } );
- },
- { name = 'keyword.operator.dictionary.tm-language-def';
- match = ';';
- },
- { include = '#catch-all'; },
- );
- };
Add Comment
Please, Sign In to add comment