Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { include = '#patterns'; },
- { include = '#comment-keyword';},
- { include = '#invalid-keyword';},
- { include = '#string'; },
- { 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'; },
- );
- };
- scope-name = { patterns = (
- { name = 'string.quoted.single.tm-language-def';
- match = "'([a-z][a-z0-9.\-]+)'";
- captures = { 1 = { name = 'entity.name.scope.tm-language-def'; }; };
- },
- { name = 'string.quoted.double.tm-language-def';
- match = '"([a-z][a-z0-9.\-]+)"';
- captures = { 1 = { name = 'entity.name.scope.tm-language-def'; }; };
- },
- );
- };
- string = { patterns = (
- { name = 'constant.numeric.tm-language-def';
- match = '\b[0-9]+\b';
- },
- { name = 'string.unquoted.tm-language-def';
- match = '[-a-zA-Z0-9_.]+';
- },
- { name = 'string.quoted.single.tm-language-def';
- begin = "'";
- end = "'";
- patterns = ( { include = '#string-constant'; } );
- },
- { name = 'string.quoted.double.tm-language-def';
- begin = '"';
- end = '"';
- patterns = ( { include = '#string-constant'; } );
- },
- );
- };
Add Comment
Please, Sign In to add comment