6 lines
16 KiB
JavaScript
6 lines
16 KiB
JavaScript
|
const lang = Object.freeze(JSON.parse("{\"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-Za-z_]\\\\w*)?)\",\"beginCaptures\":{\"1\":{\"name\":\"support.type.array.gnuplot\"},\"2\":{\"name\":\"entity.name.variable.gnuplot\",\"patterns\":[{\"include\":\"#InvalidVariableDecl\"},{\"include\":\"#BuiltinVariable\"}]}},\"end\":\"(?=(;|#|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"name\":\"meta.variable.gnuplot\",\"patterns\":[{\"include\":\"#Expression\"}]},\"BuiltinFunction\":{\"patterns\":[{\"match\":\"\\\\b(?:defined)\\\\b\",\"name\":\"invalid.deprecated.function.gnuplot\"},{\"match\":\"\\\\b(?:abs|acos|acosh|airy|arg|asin|asinh|atan|atan2|atanh|EllipticK|EllipticE|EllipticPi|besj0|besj1|besy0|besy1|ceil|cos|cosh|erf|erfc|exp|expint|floor|gamma|ibeta|inverf|igamma|imag|invnorm|int|lambertw|lgamma|log|log10|norm|rand|real|sgn|sin|sinh|sqrt|tan|tanh|voigt|cerf|cdawson|faddeeva|erfi|VP)\\\\b\",\"name\":\"support.function.math.gnuplot\"},{\"match\":\"\\\\b(?:gprintf|sprintf|strlen|strstrt|substr|strftime|strptime|system|word|words)\\\\b\",\"name\":\"support.function.string.gnuplot\"},{\"match\":\"\\\\b(?:column|columnhead|exists|hsv2rgb|stringcolumn|timecolumn|tm_hour|tm_mday|tm_min|tm_mon|tm_sec|tm_wday|tm_yday|tm_year|time|valid|value)\\\\b\",\"name\":\"support.function.other.gnuplot\"}]},\"BuiltinOperator\":{\"patterns\":[{\"match\":\"(&&|\\\\|\\\\|)\",\"name\":\"keyword.operator.logical.gnuplot\"},{\"match\":\"(<<|>>|&|\\\\||\\\\^)\",\"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\":\"\\\\b(?:FIT_LIMIT|FIT_MAXITER|FIT_START_LAMBDA|FIT_LAMBDA_FACTOR|FIT_SKIP|FIT_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\":\"\\\\b(?:update)\\\\b\",\"end\":\"(?=(;|#|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"name\":\"invalid.deprecated.command.gnuplot\"},{\"begin\":\"\\\\b(?:break|clear|continue|pwd|refresh|replot|reread|shell)\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.command.gnuplot\"}},\"end\":\"(?=(;|#|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#InvalidWord\"}]},{\"begin\":\"\\\\b(?:cd|call|eval|exit|help|history|load|lower|pause|print|printerr|quit|raise|save|stats|system|test|toggle)\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.command.gnuplot\"}},\"end\":\"(?=(;|#|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#Expression\"}]},{\"begin\":\"\\\\b(import)\\\\s(.+)\\\\s(from)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.import.gnuplot\"},\"2\":{\"patterns\":[{\"include\":\"#FunctionDecl\"}]},\"3\":{\"name\":\"keyword.control.import.gnuplot\"}},\"end\":\"(?=(;|#|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#Si
|
||
|
|
||
|
export default [
|
||
|
lang
|
||
|
]
|