{ "displayName": "Gnuplot", "fileTypes": [ "gp", "plt", "plot", "gnuplot" ], "name": "gnuplot", "patterns": [ { "match": "(\\\\(?!\\n).*)", "name": "invalid.illegal.backslash.gnuplot" }, { "match": "(;)", "name": "punctuation.separator.statement.gnuplot" }, { "include": "#LineComment" }, { "include": "#DataBlock" }, { "include": "#MacroExpansion" }, { "include": "#VariableDecl" }, { "include": "#ArrayDecl" }, { "include": "#FunctionDecl" }, { "include": "#ShellCommand" }, { "include": "#Command" } ], "repository": { "ArrayDecl": { "begin": "\\b(array)\\s+([A-Z_a-z]\\w*)?", "beginCaptures": { "1": { "name": "support.type.array.gnuplot" }, "2": { "name": "entity.name.variable.gnuplot", "patterns": [ { "include": "#InvalidVariableDecl" }, { "include": "#BuiltinVariable" } ] } }, "end": "(?=([#;]|\\\\(?!\\n)|(?>|[\\&^|])", "name": "keyword.operator.bitwise.gnuplot" }, { "match": "(==|!=|<=?|>=?)", "name": "keyword.operator.comparison.gnuplot" }, { "match": "(=)", "name": "keyword.operator.assignment.gnuplot" }, { "match": "([-!+~])", "name": "keyword.operator.arithmetic.gnuplot" }, { "match": "(\\*\\*|[-%*+/])", "name": "keyword.operator.arithmetic.gnuplot" }, { "captures": { "2": { "name": "keyword.operator.word.gnuplot" } }, "match": "(\\.|\\b(eq|ne)\\b)", "name": "keyword.operator.strings.gnuplot" } ] }, "BuiltinVariable": { "patterns": [ { "match": "\\bFIT_(?:LIMIT|MAXITER|START_LAMBDA|LAMBDA_FACTOR|SKIP|INDEX)\\b", "name": "invalid.deprecated.variable.gnuplot" }, { "match": "\\b(GPVAL_\\w*|MOUSE_\\w*)\\b", "name": "support.constant.gnuplot" }, { "match": "\\b(ARG[0-9C]|GPFUN_\\w*|FIT_\\w*|STATS_\\w*|pi|NaN)\\b", "name": "support.variable.gnuplot" } ] }, "ColumnIndexLiteral": { "match": "(\\$[0-9]+)\\b", "name": "support.constant.columnindex.gnuplot" }, "Command": { "patterns": [ { "begin": "\\bupdate\\b", "end": "(?=([#;]|\\\\(?!\\n)|(?