{ "displayName": "Ara", "fileTypes": [ "ara" ], "name": "ara", "patterns": [ { "include": "#namespace" }, { "include": "#named-arguments" }, { "include": "#comments" }, { "include": "#keywords" }, { "include": "#strings" }, { "include": "#numbers" }, { "include": "#operators" }, { "include": "#type" }, { "include": "#function-call" } ], "repository": { "class-name": { "patterns": [ { "begin": "\\b(?i)(?|]|<<|>>|\\?\\?)=)", "name": "keyword.assignments.ara" }, { "match": "([\\^|]|\\|\\||&&|>>|<<|[\\&~]|<<|>>|[<>]|<=>|\\?\\?|[:?]|\\?:)(?!=)", "name": "keyword.operators.ara" }, { "match": "(===??|!==?|<=|>=|[<>])(?!=)", "name": "keyword.operator.comparison.ara" }, { "match": "(([%+]|(\\*(?!\\w)))(?!=))|(-(?!>))|(/(?!/))", "name": "keyword.operator.math.ara" }, { "match": "(?])=(?![=>])", "name": "keyword.operator.assignment.ara" }, { "captures": { "1": { "name": "punctuation.brackets.round.ara" }, "2": { "name": "punctuation.brackets.square.ara" }, "3": { "name": "punctuation.brackets.curly.ara" }, "4": { "name": "keyword.operator.comparison.ara" }, "5": { "name": "punctuation.brackets.round.ara" }, "6": { "name": "punctuation.brackets.square.ara" }, "7": { "name": "punctuation.brackets.curly.ara" } }, "match": "(?:\\b|(?:(\\))|(])|(})))[\\t ]+([<>])[\\t ]+(?:\\b|(?:(\\()|(\\[)|(\\{)))" }, { "match": "\\???->", "name": "keyword.operator.arrow.ara" }, { "match": "=>", "name": "keyword.operator.double-arrow.ara" }, { "match": "::", "name": "keyword.operator.static.ara" }, { "match": "\\(\\.\\.\\.\\)", "name": "keyword.operator.closure.ara" }, { "match": "\\.\\.\\.", "name": "keyword.operator.spread.ara" }, { "match": "\\\\", "name": "keyword.operator.namespace.ara" } ] }, "strings": { "patterns": [ { "begin": "'", "end": "'", "name": "string.quoted.single.ara", "patterns": [ { "match": "\\\\['\\\\]", "name": "constant.character.escape.ara" } ] }, { "begin": "\"", "end": "\"", "name": "string.quoted.double.ara", "patterns": [ { "include": "#interpolation" } ] } ] }, "type": { "name": "support.type.php", "patterns": [ { "match": "\\b(?:void|true|false|null|never|float|bool|int|string|dict|vec|object|mixed|nonnull|resource|self|static|parent|iterable)\\b", "name": "support.type.php" }, { "begin": "([A-Z_a-z][0-9A-Z_a-z]*)<", "beginCaptures": { "1": { "name": "support.class.php" } }, "end": ">", "patterns": [ { "include": "#type-annotation" } ] }, { "begin": "(shape\\()", "end": "((,|\\.\\.\\.)?\\s*\\))", "endCaptures": { "1": { "name": "keyword.operator.key.php" } }, "name": "storage.type.shape.php", "patterns": [ { "include": "#type-annotation" }, { "include": "#strings" }, { "include": "#constants" } ] }, { "begin": "\\(", "end": "\\)", "patterns": [ { "include": "#type-annotation" } ] }, { "begin": "\\(fn\\(", "end": "\\)", "patterns": [ { "include": "#type-annotation" } ] }, { "include": "#class-name" }, { "include": "#comments" } ] }, "user-function-call": { "begin": "(?i)(?=[0-9\\\\_a-z]*[_a-z][0-9_a-z]*\\s*\\()", "end": "(?i)[_a-z][0-9_a-z]*(?=\\s*\\()", "endCaptures": { "0": { "name": "entity.name.function.php" } }, "name": "meta.function-call.php", "patterns": [ { "include": "#namespace" } ] } }, "scopeName": "source.ara" }