grammars/source.perl6fe.json in github-linguist-5.0.11 vs grammars/source.perl6fe.json in github-linguist-5.1.0

- old
+ new

@@ -530,11 +530,11 @@ }, { "include": "#p5_regex" }, { - "match": "(?x)\n(?<=\n ^\n | ^\\s\n | [\\s\\(] [^\\p{Nd}\\p{L}]\n | ~~\\s|~~\\s\\s|match\\(\n)\n([/]) # Solidus\n(.*?) # Regex contents\n(?: (?<!\\\\)|(?<=\\\\\\\\) ) (/) # Ending", + "match": "(?x)\n(?<=\n ^\n | ^\\s\n | [\\s\\(] [^\\p{Nd}\\p{L}]\n | ~~\\s|~~\\s\\s|match\\(\n | match:\\s\n)\n([/]) # Solidus\n(.*?) # Regex contents\n(?: (?<!\\\\)|(?<=\\\\\\\\) ) (/) # Ending", "captures": { "1": { "name": "punctuation.definition.regexp.perl6fe" }, "2": { @@ -688,28 +688,405 @@ "include": "source.quoting.perl6fe#q_hw_cornerbracket_string_content" } ] }, { - "begin": "(?x)\n(?<= ^|\\s )\n(?:\n (m|rx|s|S)\n (\n (?:\n (?<!:P5) # < This can maybe be removed because we\n \\s*:\\w+\n (?!\\s*:P5) # < include p5_regex above it\n )*\n )\n)\n\\s*\n([^#\\p{Ps}\\p{Pe}\\p{Pi}\\p{Pf}\\w'\\-<>\\-\\}\\{])", + "begin": "(?x)\n(?<= ^|\\s )\n(?:\n (m|rx|s|S)\n (\n (?:\n (?<!:P5) # < This can maybe be removed because we\n \\s*:\\w+\n (?!\\s*:P5) # < include p5_regex above it\n )*\n )\n)\n\\s*\n(/)", "beginCaptures": { "1": { - "name": "string.regexp.construct.perl6fe" + "name": "string.regexp.construct.slash.perl6fe" }, "2": { - "name": "entity.name.section.adverb.regexp.perl6fe" + "name": "entity.name.section.adverb.regexp.slash.perl6fe" }, "3": { - "name": "punctuation.definition.regexp.perl6fe" + "name": "punctuation.definition.regexp.slash.perl6fe" } }, + "end": "(?x) (?: (?<!\\\\)|(?<=\\\\\\\\) ) (/)", + "endCaptures": { + "1": { + "name": "punctuation.definition.regexp.slash.perl6fe" + } + }, + "contentName": "string.regexp.slash.perl6fe", + "patterns": [ + { + "include": "#interpolation" + }, + { + "include": "source.regexp.perl6fe" + } + ] + }, + { + "begin": "(?x)\n(?<= ^|\\s )\n(?:\n (m|rx|s|S)\n (\n (?:\n (?<!:P5) # < This can maybe be removed because we\n \\s*:\\w+\n (?!\\s*:P5) # < include p5_regex above it\n )*\n )\n)\n\\s*\n({)", + "beginCaptures": { + "1": { + "name": "string.regexp.construct.brace.perl6fe" + }, + "2": { + "name": "entity.name.section.adverb.regexp.brace.perl6fe" + }, + "3": { + "name": "punctuation.definition.regexp.brace.perl6fe" + } + }, + "end": "(?x) (?: (?<!\\\\)|(?<=\\\\\\\\) ) (})", + "endCaptures": { + "1": { + "name": "punctuation.definition.regexp.brace.perl6fe" + } + }, + "contentName": "string.regexp.brace.perl6fe", + "patterns": [ + { + "include": "#interpolation" + }, + { + "include": "source.regexp.perl6fe" + } + ] + }, + { + "begin": "(?x)\n(?<= ^|\\s )\n(?:\n (m|rx|s|S)\n (\n (?:\n (?<!:P5) # < This can maybe be removed because we\n \\s*:\\w+\n (?!\\s*:P5) # < include p5_regex above it\n )*\n )\n)\n\\s*\n(<)", + "beginCaptures": { + "1": { + "name": "string.regexp.construct.angle.perl6fe" + }, + "2": { + "name": "entity.name.section.adverb.regexp.angle.perl6fe" + }, + "3": { + "name": "punctuation.definition.regexp.angle.perl6fe" + } + }, + "end": "(?x) (?: (?<!\\\\)|(?<=\\\\\\\\) ) (>)", + "endCaptures": { + "1": { + "name": "punctuation.definition.regexp.angle.perl6fe" + } + }, + "contentName": "string.regexp.angle.perl6fe", + "patterns": [ + { + "include": "#interpolation" + }, + { + "include": "source.regexp.perl6fe" + } + ] + }, + { + "begin": "(?x)\n(?<= ^|\\s )\n(?:\n (m|rx|s|S)\n (\n (?:\n (?<!:P5) # < This can maybe be removed because we\n \\s*:\\w+\n (?!\\s*:P5) # < include p5_regex above it\n )*\n )\n)\n\\s*\n(\\()", + "beginCaptures": { + "1": { + "name": "string.regexp.construct.paren.perl6fe" + }, + "2": { + "name": "entity.name.section.adverb.regexp.paren.perl6fe" + }, + "3": { + "name": "punctuation.definition.regexp.paren.perl6fe" + } + }, + "end": "(?x) (?: (?<!\\\\)|(?<=\\\\\\\\) ) (\\))", + "endCaptures": { + "1": { + "name": "punctuation.definition.regexp.paren.perl6fe" + } + }, + "contentName": "string.regexp.paren.perl6fe", + "patterns": [ + { + "include": "#interpolation" + }, + { + "include": "source.regexp.perl6fe" + } + ] + }, + { + "begin": "(?x)\n(?<= ^|\\s )\n(?:\n (m|rx|s|S)\n (\n (?:\n (?<!:P5) # < This can maybe be removed because we\n \\s*:\\w+\n (?!\\s*:P5) # < include p5_regex above it\n )*\n )\n)\n\\s*\n(\\[)", + "beginCaptures": { + "1": { + "name": "string.regexp.construct.bracket.perl6fe" + }, + "2": { + "name": "entity.name.section.adverb.regexp.bracket.perl6fe" + }, + "3": { + "name": "punctuation.definition.regexp.bracket.perl6fe" + } + }, + "end": "(?x) (?: (?<!\\\\)|(?<=\\\\\\\\) ) (\\])", + "endCaptures": { + "1": { + "name": "punctuation.definition.regexp.bracket.perl6fe" + } + }, + "contentName": "string.regexp.bracket.perl6fe", + "patterns": [ + { + "include": "#interpolation" + }, + { + "include": "source.regexp.perl6fe" + } + ] + }, + { + "begin": "(?x)\n(?<= ^|\\s )\n(?:\n (m|rx|s|S)\n (\n (?:\n (?<!:P5) # < This can maybe be removed because we\n \\s*:\\w+\n (?!\\s*:P5) # < include p5_regex above it\n )*\n )\n)\n\\s*\n(“)", + "beginCaptures": { + "1": { + "name": "string.regexp.construct.left_double_right_double.perl6fe" + }, + "2": { + "name": "entity.name.section.adverb.regexp.left_double_right_double.perl6fe" + }, + "3": { + "name": "punctuation.definition.regexp.left_double_right_double.perl6fe" + } + }, + "end": "(?x) (?: (?<!\\\\)|(?<=\\\\\\\\) ) (”)", + "endCaptures": { + "1": { + "name": "punctuation.definition.regexp.left_double_right_double.perl6fe" + } + }, + "contentName": "string.regexp.left_double_right_double.perl6fe", + "patterns": [ + { + "include": "#interpolation" + }, + { + "include": "source.regexp.perl6fe" + } + ] + }, + { + "begin": "(?x)\n(?<= ^|\\s )\n(?:\n (m|rx|s|S)\n (\n (?:\n (?<!:P5) # < This can maybe be removed because we\n \\s*:\\w+\n (?!\\s*:P5) # < include p5_regex above it\n )*\n )\n)\n\\s*\n(„)", + "beginCaptures": { + "1": { + "name": "string.regexp.construct.left_double-low-q_right_double.perl6fe" + }, + "2": { + "name": "entity.name.section.adverb.regexp.left_double-low-q_right_double.perl6fe" + }, + "3": { + "name": "punctuation.definition.regexp.left_double-low-q_right_double.perl6fe" + } + }, + "end": "(?x) (?: (?<!\\\\)|(?<=\\\\\\\\) ) (”|“)", + "endCaptures": { + "1": { + "name": "punctuation.definition.regexp.left_double-low-q_right_double.perl6fe" + } + }, + "contentName": "string.regexp.left_double-low-q_right_double.perl6fe", + "patterns": [ + { + "include": "#interpolation" + }, + { + "include": "source.regexp.perl6fe" + } + ] + }, + { + "begin": "(?x)\n(?<= ^|\\s )\n(?:\n (m|rx|s|S)\n (\n (?:\n (?<!:P5) # < This can maybe be removed because we\n \\s*:\\w+\n (?!\\s*:P5) # < include p5_regex above it\n )*\n )\n)\n\\s*\n(‘)", + "beginCaptures": { + "1": { + "name": "string.regexp.construct.left_single_right_single.perl6fe" + }, + "2": { + "name": "entity.name.section.adverb.regexp.left_single_right_single.perl6fe" + }, + "3": { + "name": "punctuation.definition.regexp.left_single_right_single.perl6fe" + } + }, + "end": "(?x) (?: (?<!\\\\)|(?<=\\\\\\\\) ) (’)", + "endCaptures": { + "1": { + "name": "punctuation.definition.regexp.left_single_right_single.perl6fe" + } + }, + "contentName": "string.regexp.left_single_right_single.perl6fe", + "patterns": [ + { + "include": "#interpolation" + }, + { + "include": "source.regexp.perl6fe" + } + ] + }, + { + "begin": "(?x)\n(?<= ^|\\s )\n(?:\n (m|rx|s|S)\n (\n (?:\n (?<!:P5) # < This can maybe be removed because we\n \\s*:\\w+\n (?!\\s*:P5) # < include p5_regex above it\n )*\n )\n)\n\\s*\n(‚)", + "beginCaptures": { + "1": { + "name": "string.regexp.construct.low-q_left_single.perl6fe" + }, + "2": { + "name": "entity.name.section.adverb.regexp.low-q_left_single.perl6fe" + }, + "3": { + "name": "punctuation.definition.regexp.low-q_left_single.perl6fe" + } + }, + "end": "(?x) (?: (?<!\\\\)|(?<=\\\\\\\\) ) (‘)", + "endCaptures": { + "1": { + "name": "punctuation.definition.regexp.low-q_left_single.perl6fe" + } + }, + "contentName": "string.regexp.low-q_left_single.perl6fe", + "patterns": [ + { + "include": "#interpolation" + }, + { + "include": "source.regexp.perl6fe" + } + ] + }, + { + "begin": "(?x)\n(?<= ^|\\s )\n(?:\n (m|rx|s|S)\n (\n (?:\n (?<!:P5) # < This can maybe be removed because we\n \\s*:\\w+\n (?!\\s*:P5) # < include p5_regex above it\n )*\n )\n)\n\\s*\n(「)", + "beginCaptures": { + "1": { + "name": "string.regexp.construct.fw_cornerbracket.perl6fe" + }, + "2": { + "name": "entity.name.section.adverb.regexp.fw_cornerbracket.perl6fe" + }, + "3": { + "name": "punctuation.definition.regexp.fw_cornerbracket.perl6fe" + } + }, + "end": "(?x) (?: (?<!\\\\)|(?<=\\\\\\\\) ) (」)", + "endCaptures": { + "1": { + "name": "punctuation.definition.regexp.fw_cornerbracket.perl6fe" + } + }, + "contentName": "string.regexp.fw_cornerbracket.perl6fe", + "patterns": [ + { + "include": "#interpolation" + }, + { + "include": "source.regexp.perl6fe" + } + ] + }, + { + "begin": "(?x)\n(?<= ^|\\s )\n(?:\n (m|rx|s|S)\n (\n (?:\n (?<!:P5) # < This can maybe be removed because we\n \\s*:\\w+\n (?!\\s*:P5) # < include p5_regex above it\n )*\n )\n)\n\\s*\n(「)", + "beginCaptures": { + "1": { + "name": "string.regexp.construct.hw_cornerbracket.perl6fe" + }, + "2": { + "name": "entity.name.section.adverb.regexp.hw_cornerbracket.perl6fe" + }, + "3": { + "name": "punctuation.definition.regexp.hw_cornerbracket.perl6fe" + } + }, + "end": "(?x) (?: (?<!\\\\)|(?<=\\\\\\\\) ) (」)", + "endCaptures": { + "1": { + "name": "punctuation.definition.regexp.hw_cornerbracket.perl6fe" + } + }, + "contentName": "string.regexp.hw_cornerbracket.perl6fe", + "patterns": [ + { + "include": "#interpolation" + }, + { + "include": "source.regexp.perl6fe" + } + ] + }, + { + "begin": "(?x)\n(?<= ^|\\s )\n(?:\n (m|rx|s|S)\n (\n (?:\n (?<!:P5) # < This can maybe be removed because we\n \\s*:\\w+\n (?!\\s*:P5) # < include p5_regex above it\n )*\n )\n)\n\\s*\n(«)", + "beginCaptures": { + "1": { + "name": "string.regexp.construct.chevron.perl6fe" + }, + "2": { + "name": "entity.name.section.adverb.regexp.chevron.perl6fe" + }, + "3": { + "name": "punctuation.definition.regexp.chevron.perl6fe" + } + }, + "end": "(?x) (?: (?<!\\\\)|(?<=\\\\\\\\) ) (»)", + "endCaptures": { + "1": { + "name": "punctuation.definition.regexp.chevron.perl6fe" + } + }, + "contentName": "string.regexp.chevron.perl6fe", + "patterns": [ + { + "include": "#interpolation" + }, + { + "include": "source.regexp.perl6fe" + } + ] + }, + { + "begin": "(?x)\n(?<= ^|\\s )\n(?:\n (m|rx|s|S)\n (\n (?:\n (?<!:P5) # < This can maybe be removed because we\n \\s*:\\w+\n (?!\\s*:P5) # < include p5_regex above it\n )*\n )\n)\n\\s*\n(⟅)", + "beginCaptures": { + "1": { + "name": "string.regexp.construct.s-shaped-bag-delimiter.perl6fe" + }, + "2": { + "name": "entity.name.section.adverb.regexp.s-shaped-bag-delimiter.perl6fe" + }, + "3": { + "name": "punctuation.definition.regexp.s-shaped-bag-delimiter.perl6fe" + } + }, + "end": "(?x) (?: (?<!\\\\)|(?<=\\\\\\\\) ) (⟆)", + "endCaptures": { + "1": { + "name": "punctuation.definition.regexp.s-shaped-bag-delimiter.perl6fe" + } + }, + "contentName": "string.regexp.s-shaped-bag-delimiter.perl6fe", + "patterns": [ + { + "include": "#interpolation" + }, + { + "include": "source.regexp.perl6fe" + } + ] + }, + { + "begin": "(?x)\n(?<= ^|\\s )\n(?:\n (m|rx|s|S)\n (\n (?:\n (?<!:P5) # < This can maybe be removed because we\n \\s*:\\w+\n (?!\\s*:P5) # < include p5_regex above it\n )*\n )\n)\n\\s*\n([^#\\p{Ps}\\p{Pe}\\p{Pi}\\p{Pf}\\w'\\-<>\\-\\]\\)\\}\\{])", + "beginCaptures": { + "1": { + "name": "string.regexp.construct.any.perl6fe" + }, + "2": { + "name": "entity.name.section.adverb.regexp.any.perl6fe" + }, + "3": { + "name": "punctuation.definition.regexp.any.perl6fe" + } + }, "end": "(?x) (?: (?<!\\\\)|(?<=\\\\\\\\) ) (\\3)", "endCaptures": { "1": { - "name": "punctuation.definition.regexp.perl6fe" + "name": "punctuation.definition.regexp.any.perl6fe" } }, - "contentName": "string.regexp.perl6fe", + "contentName": "string.regexp.any.perl6fe", "patterns": [ { "include": "#interpolation" }, { \ No newline at end of file