lib/code_rippa/syntax/antlr.syntax in code_rippa-0.0.7 vs lib/code_rippa/syntax/antlr.syntax in code_rippa-1.0.0

- old
+ new

@@ -1,151 +1,151 @@ ---- +--- name: ANTLR -fileTypes: +fileTypes: - g scopeName: source.antlr -repository: - nested-curly: +repository: + nested-curly: name: source.embedded.java-or-c.antlr - captures: - "0": + captures: + '0': name: punctuation.section.group.antlr - begin: \{ - end: \} - patterns: + begin: "\\{" + end: "\\}" + patterns: - name: keyword.control.java-or-c - match: \b(break|case|continue|default|do|else|for|goto|if|_Pragma|return|switch|while)\b + match: "\\b(break|case|continue|default|do|else|for|goto|if|_Pragma|return|switch|while)\\b" - name: storage.type.java-or-c - match: \b(asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void)\b + match: "\\b(asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void)\\b" - name: storage.modifier.java-or-c - match: \b(const|extern|register|restrict|static|volatile|inline)\b + match: "\\b(const|extern|register|restrict|static|volatile|inline)\\b" - name: constant.language.java-or-c - match: \b(NULL|true|false|TRUE|FALSE)\b + match: "\\b(NULL|true|false|TRUE|FALSE)\\b" - name: keyword.operator.sizeof.java-or-c - match: \b(sizeof)\b + match: "\\b(sizeof)\\b" - name: constant.numeric.java-or-c - match: \b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\b + match: "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b" - name: string.quoted.double.java-or-c - endCaptures: - "0": + endCaptures: + '0': name: punctuation.definition.string.end.java-or-c begin: "\"" - beginCaptures: - "0": + beginCaptures: + '0': name: punctuation.definition.string.begin.java-or-c end: "\"" - patterns: + patterns: - name: constant.character.escape.antlr - match: \\. + match: "\\\\." - name: string.quoted.single.java-or-c - endCaptures: - "0": + endCaptures: + '0': name: punctuation.definition.string.end.java-or-c begin: "'" - beginCaptures: - "0": + beginCaptures: + '0': name: punctuation.definition.string.begin.java-or-c end: "'" - patterns: + patterns: - name: constant.character.escape.antlr - match: \\. + match: "\\\\." - name: support.constant.eof-char.antlr - match: \bEOF_CHAR\b + match: "\\bEOF_CHAR\\b" - include: "#comments" - comments: - patterns: + comments: + patterns: - name: comment.block.antlr - captures: - "0": + captures: + '0': name: punctuation.definition.comment.antlr - begin: /\* - end: \*/ + begin: "/\\*" + end: "\\*/" - name: comment.line.double-slash.antlr - captures: - "1": + captures: + '1': name: punctuation.definition.comment.antlr - match: (//).*$\n? - strings: - patterns: + match: "(//).*$\\n?" + strings: + patterns: - name: string.quoted.double.antlr - endCaptures: - "0": + endCaptures: + '0': name: punctuation.definition.string.end.antlr begin: "\"" - beginCaptures: - "0": + beginCaptures: + '0': name: punctuation.definition.string.begin.antlr end: "\"" - patterns: + patterns: - name: constant.character.escape.antlr - match: \\(u\h{4}|.) + match: "\\\\(u\\h{4}|.)" - name: string.quoted.single.antlr - endCaptures: - "0": + endCaptures: + '0': name: punctuation.definition.string.end.antlr begin: "'" - beginCaptures: - "0": + beginCaptures: + '0': name: punctuation.definition.string.begin.antlr end: "'" - patterns: + patterns: - name: constant.character.escape.antlr - match: \\(u\h{4}|.) + match: "\\\\(u\\h{4}|.)" uuid: ACABDECD-4F22-47D9-A5F4-DBA957A2A1CC -patterns: +patterns: - include: "#strings" - include: "#comments" - name: meta.options.antlr - begin: \boptions\b - beginCaptures: - "0": + begin: "\\boptions\\b" + beginCaptures: + '0': name: keyword.other.options.antlr - end: (?<=\}) - patterns: + end: "(?<=\\})" + patterns: - name: meta.options-block.antlr - captures: - "0": + captures: + '0': name: punctuation.section.options.antlr - begin: \{ - end: \} - patterns: + begin: "\\{" + end: "\\}" + patterns: - include: "#strings" - include: "#comments" - name: constant.numeric.antlr - match: \b\d+\b + match: "\\b\\d+\\b" - name: variable.other.option.antlr - match: \b(k|charVocabulary|filter|greedy|paraphrase|exportVocab|buildAST|defaultErrorHandler|language|namespace|namespaceStd|namespaceAntlr|genHashLines)\b + match: "\\b(k|charVocabulary|filter|greedy|paraphrase|exportVocab|buildAST|defaultErrorHandler|language|namespace|namespaceStd|namespaceAntlr|genHashLines)\\b" - name: constant.language.boolean.antlr - match: \b(true|false)\b + match: "\\b(true|false)\\b" - name: meta.definition.class.antlr - captures: - "1": + captures: + '1': name: storage.type.antlr - "2": + '2': name: entity.name.type.class.antlr - begin: ^(class)\b\s+(\w+) - end: ; - patterns: + begin: "^(class)\\b\\s+(\\w+)" + end: ";" + patterns: - name: meta.definition.class.extends.antlr - captures: - "1": + captures: + '1': name: storage.modifier.antlr - begin: \b(extends)\b\s+ - end: (?=;) - patterns: + begin: "\\b(extends)\\b\\s+" + end: "(?=;)" + patterns: - name: support.class.antlr - match: \b(Parser|Lexer|TreeWalker)\b + match: "\\b(Parser|Lexer|TreeWalker)\\b" - name: storage.modifier.antlr - match: ^protected\b + match: "^protected\\b" - name: entity.name.type.token.antlr - match: ^[[:upper:]_][[:upper:][:digit:]_]*\b + match: "^[[:upper:]_][[:upper:][:digit:]_]*\\b" - name: meta.rule.antlr - captures: - "1": + captures: + '1': name: entity.name.function.rule.antlr - "2": + '2': name: keyword.control.antlr - match: ^(\w+)(?:\s+(returns\b))? + match: "^(\\w+)(?:\\s+(returns\\b))?" - name: constant.other.token.antlr - match: \b[[:upper:]_][[:upper:][:digit:]_]*\b + match: "\\b[[:upper:]_][[:upper:][:digit:]_]*\\b" - include: "#nested-curly" -keyEquivalent: ^~A +keyEquivalent: "^~A"