diff --git a/syntaxes/atd.json b/syntaxes/atd.json index dc091edeb..09d6d692a 100644 --- a/syntaxes/atd.json +++ b/syntaxes/atd.json @@ -22,7 +22,9 @@ "1": { "name": "keyword.other.atd" }, "2": { "name": "keyword.other.atd" } }, - "endCaptures": [{ "name": "keyword.other.atd" }], + "endCaptures": { + "1": { "name": "keyword.other.atd" } + }, "patterns": [{ "include": "$self" }] } ] diff --git a/syntaxes/cram.json b/syntaxes/cram.json index b512dc19e..e59928691 100644 --- a/syntaxes/cram.json +++ b/syntaxes/cram.json @@ -135,24 +135,34 @@ { "begin": "\\[\\^?", "end": "\\]", - "beginCaptures": [{ "name": "keyword.other.regex" }], - "endCaptures": [{ "name": "keyword.other.regex" }], + "beginCaptures": { + "1": { "name": "keyword.other.regex" } + }, + "endCaptures": { + "1": { "name": "keyword.other.regex" } + }, "contentName": "source.regex", "patterns": [{ "name": "keyword.other.regex", "match": "-" }] }, { "begin": "\\((\\?[:=!])?", "end": "\\)", - "beginCaptures": [{ "name": "keyword.other.regex" }], - "endCaptures": [{ "name": "keyword.other.regex" }], + "beginCaptures": { + "1": { "name": "keyword.other.regex" } + }, + "endCaptures": { + "1": { "name": "keyword.other.regex" } + }, "contentName": "source.regex", "patterns": [{ "include": "#regex" }] }, { "begin": "{", "end": "}", - "beginCaptures": [{ "name": "keyword.other.regex" }], - "endCaptures": [{ "name": "keyword.other.regex" }], + "beginCaptures": { + "1": { "name": "keyword.other.regex" } + }, + "endCaptures": { "1": { "name": "keyword.other.regex" } }, "contentName": "source.regex", "patterns": [ { diff --git a/syntaxes/dune.json b/syntaxes/dune.json index a93279e28..8851e3239 100644 --- a/syntaxes/dune.json +++ b/syntaxes/dune.json @@ -2788,16 +2788,16 @@ "comment": "variable", "begin": "%\\{", "end": "\\}", - "beginCaptures": [ - { + "beginCaptures": { + "1": { "name": "keyword.operator.dune" } - ], - "endCaptures": [ - { + }, + "endCaptures": { + "1": { "name": "keyword.operator.dune" } - ], + }, "patterns": [ { "include": "#variables" @@ -2876,16 +2876,16 @@ "comment": "escaped variable", "begin": "(\\%\\{)", "end": "(\\})", - "beginCaptures": [ - { + "beginCaptures": { + "1": { "name": "constant.character.escape.dune" } - ], - "endCaptures": [ - { + }, + "endCaptures": { + "1": { "name": "constant.character.escape.dune" } - ], + }, "patterns": [ { "include": "#variables" diff --git a/syntaxes/menhir.json b/syntaxes/menhir.json index 5f6d8757e..f1ef0dcdd 100644 --- a/syntaxes/menhir.json +++ b/syntaxes/menhir.json @@ -13,9 +13,9 @@ { "comment": "sequence of rules", "begin": "%%", - "beginCaptures": [{ "name": "keyword.other.menhir" }], + "beginCaptures": { "1": { "name": "keyword.other.menhir" } }, "end": "%%", - "endCaptures": [{ "name": "keyword.other.menhir" }], + "endCaptures": { "1": { "name": "keyword.other.menhir" } }, "patterns": [{ "include": "#comments" }, { "include": "#rules" }] }, { "include": "source.ocaml" } @@ -44,15 +44,15 @@ { "comment": "ocaml header", "begin": "%{", - "beginCaptures": [{ "name": "keyword.other.menhir" }], + "beginCaptures": { "1": { "name": "keyword.other.menhir" } }, "end": "%}", - "endCaptures": [{ "name": "keyword.other.menhir" }], + "endCaptures": { "1": { "name": "keyword.other.menhir" } }, "patterns": [{ "include": "source.ocaml" }] }, { "comment": "token declaration", "begin": "%token\\b", - "beginCaptures": [{ "name": "keyword.other.menhir" }], + "beginCaptures": { "1": { "name": "keyword.other.menhir" } }, "end": "(?=%)", "patterns": [ { "include": "#type-annotation" }, @@ -65,7 +65,7 @@ { "comment": "associativity declaration", "begin": "%(?:nonassoc|left|right)\\b", - "beginCaptures": [{ "name": "keyword.other.menhir" }], + "beginCaptures": { "1": { "name": "keyword.other.menhir" } }, "end": "(?=%)", "patterns": [ { "include": "#token-name" }, @@ -78,7 +78,7 @@ { "comment": "type/start/on_error_reduce declaration", "begin": "%(?:type|start|on_error_reduce)\\b", - "beginCaptures": [{ "name": "keyword.other.menhir" }], + "beginCaptures": { "1": { "name": "keyword.other.menhir" } }, "end": "(?=%)", "patterns": [ { "include": "#type-annotation" }, @@ -96,7 +96,7 @@ { "comment": "attribute declaration", "begin": "%(?:attribute\\b|(?=\\[))", - "beginCaptures": [{ "name": "keyword.other.menhir" }], + "beginCaptures": { "1": { "name": "keyword.other.menhir" } }, "end": "(?=%)", "patterns": [ { "include": "source.ocaml#attributes" }, @@ -113,8 +113,8 @@ "comment": "ocaml type annotation for token", "begin": "<", "end": ">", - "beginCaptures": [{ "name": "keyword.other.menhir" }], - "endCaptures": [{ "name": "keyword.other.menhir" }], + "beginCaptures": { "1": { "name": "keyword.other.menhir" } }, + "endCaptures": { "1": { "name": "keyword.other.menhir" } }, "patterns": [{ "include": "source.ocaml" }] } } @@ -167,7 +167,7 @@ { "comment": "production", "begin": "[:|]", - "beginCaptures": [{ "name": "keyword.other.menhir" }], + "beginCaptures": { "1": { "name": "keyword.other.menhir" } }, "end": "(?=[{<|]|let\\b|[[:lower:]_][[:word:]]*[[:space:]]*(?:\\([^)]+\\)[[:space:]]*)?:|%(?!prec\\b))", "patterns": [ { "include": "#comments" }, @@ -214,7 +214,7 @@ { "comment": "production", "begin": "[:|]", - "beginCaptures": [{ "name": "keyword.other.menhir" }], + "beginCaptures": { "1": { "name": "keyword.other.menhir" } }, "end": "(?=[{<|]|let\\b|[[:lower:]_][[:word:]]*[[:space:]]*(?:\\([^)]+\\)[[:space:]]*)?:|%(?!prec\\b))", "patterns": [ { "include": "#comments" }, @@ -238,9 +238,9 @@ "comment": "ocaml semantic action", "contentName": "source.embedded-action.menhir", "begin": "{", - "beginCaptures": [{ "name": "keyword.other.menhir" }], + "beginCaptures": { "1": { "name": "keyword.other.menhir" } }, "end": "}", - "endCaptures": [{ "name": "keyword.other.menhir" }], + "endCaptures": { "1": { "name": "keyword.other.menhir" } }, "patterns": [{ "include": "source.ocaml" }] }, "new-actions": { @@ -249,9 +249,9 @@ { "comment": "point-free ocaml semantic action", "begin": "<", - "beginCaptures": [{ "name": "keyword.other.menhir" }], + "beginCaptures": { "1": { "name": "keyword.other.menhir" } }, "end": ">", - "endCaptures": [{ "name": "keyword.other.menhir" }], + "endCaptures": { "1": { "name": "keyword.other.menhir" } }, "patterns": [{ "include": "source.ocaml" }] } ] diff --git a/syntaxes/ocaml.json b/syntaxes/ocaml.json index 287ad316e..c67e341c0 100644 --- a/syntaxes/ocaml.json +++ b/syntaxes/ocaml.json @@ -140,8 +140,8 @@ "comment": "Cinaps comment", "begin": "\\(\\*\\$", "end": "\\*\\)", - "beginCaptures": [{ "name": "comment.cinaps.ocaml" }], - "endCaptures": [{ "name": "comment.cinaps.ocaml" }], + "beginCaptures": { "1": { "name": "comment.cinaps.ocaml" } }, + "endCaptures": { "1": { "name": "comment.cinaps.ocaml" } }, "patterns": [{ "include": "$self" }] }, { @@ -333,15 +333,15 @@ { "begin": "\\b(sig)\\b", "end": "\\b(end)\\b", - "beginCaptures": [{ "name": "keyword.other.ocaml" }], - "endCaptures": [{ "name": "keyword.other.ocaml" }], + "beginCaptures": { "1": { "name": "keyword.other.ocaml" } }, + "endCaptures": { "1": { "name": "keyword.other.ocaml" } }, "patterns": [{ "include": "source.ocaml.interface" }] }, { "begin": "\\b(struct)\\b", "end": "\\b(end)\\b", - "beginCaptures": [{ "name": "keyword.other.ocaml" }], - "endCaptures": [{ "name": "keyword.other.ocaml" }], + "beginCaptures": { "1": { "name": "keyword.other.ocaml" } }, + "endCaptures": { "1": { "name": "keyword.other.ocaml" } }, "patterns": [{ "include": "$self" }] } ] diff --git a/syntaxes/ocamlbuild.json b/syntaxes/ocamlbuild.json index d0e67eb56..1fddd6632 100644 --- a/syntaxes/ocamlbuild.json +++ b/syntaxes/ocamlbuild.json @@ -31,8 +31,8 @@ { "begin": "<", "end": ">", - "beginCaptures": [{ "name": "keyword.operator.ocamlbuild" }], - "endCaptures": [{ "name": "keyword.operator.ocamlbuild" }], + "beginCaptures": { "1": { "name": "keyword.operator.ocamlbuild" } }, + "endCaptures": { "1": { "name": "keyword.operator.ocamlbuild" } }, "name": "string.quoted.double.ocamlbuild", "patterns": [{ "include": "#patterns" }] }, @@ -65,8 +65,8 @@ { "begin": "{", "end": "}", - "beginCaptures": [{ "name": "keyword.operator.ocamlbuild" }], - "endCaptures": [{ "name": "keyword.operator.ocamlbuild" }], + "beginCaptures": { "1": { "name": "keyword.operator.ocamlbuild" } }, + "endCaptures": { "1": { "name": "keyword.operator.ocamlbuild" } }, "patterns": [ { "name": "keyword.operator.ocamlbuild", "match": "," }, { "include": "#patterns" } @@ -75,8 +75,8 @@ { "begin": "\\[\\^?", "end": "\\]", - "beginCaptures": [{ "name": "keyword.operator.ocamlbuild" }], - "endCaptures": [{ "name": "keyword.operator.ocamlbuild" }] + "beginCaptures": { "1": { "name": "keyword.operator.ocamlbuild" } }, + "endCaptures": { "1": { "name": "keyword.operator.ocamlbuild" } } } ] }, diff --git a/syntaxes/ocamllex.json b/syntaxes/ocamllex.json index 4fc8b90a6..21472ac70 100644 --- a/syntaxes/ocamllex.json +++ b/syntaxes/ocamllex.json @@ -67,9 +67,13 @@ { "comment": "embedded ocaml source", "begin": "{", - "beginCaptures": [{ "name": "keyword.other.ocamllex" }], + "beginCaptures": { + "1": { "name": "keyword.other.ocamllex" } + }, "end": "}", - "endCaptures": [{ "name": "keyword.other.ocamllex" }], + "endCaptures": { + "1": { "name": "keyword.other.ocamllex" } + }, "patterns": [{ "include": "source.ocaml" }] } ]