site/node_modules/shiki/dist/langs/gnuplot.mjs

7 lines
18 KiB
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
const lang = Object.freeze({ "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(?x:\n(array)\\s+\n([A-Za-z_]\\w*)?\n\n\n)", "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(?x:\ndefined\n)\\b", "name": "invalid.deprecated.function.gnuplot" }, { "match": "\\b(?x:\nabs |\nacos |\nacosh |\nairy |\narg |\nasin |\nasinh |\natan |\natan2 |\natanh |\nEllipticK |\nEllipticE |\nEllipticPi |\nbesj0 |\nbesj1 |\nbesy0 |\nbesy1 |\nceil |\ncos |\ncosh |\nerf |\nerfc |\nexp |\nexpint |\nfloor |\ngamma |\nibeta |\ninverf |\nigamma |\nimag |\ninvnorm |\nint |\nlambertw |\nlgamma |\nlog |\nlog10 |\nnorm |\nrand |\nreal |\nsgn |\nsin |\nsinh |\nsqrt |\ntan |\ntanh |\nvoigt |\ncerf |\ncdawson |\nfaddeeva |\nerfi |\nVP\n)\\b", "name": "support.function.math.gnuplot" }, { "match": "\\b(?x:\ngprintf |\nsprintf |\nstrlen |\nstrstrt |\nsubstr |\nstrftime |\nstrptime |\nsystem |\nword |\nwords\n)\\b", "name": "support.function.string.gnuplot" }, { "match": "\\b(?x:\ncolumn |\ncolumnhead |\nexists |\nhsv2rgb |\nstringcolumn |\ntimecolumn |\ntm_hour |\ntm_mday |\ntm_min |\ntm_mon |\ntm_sec |\ntm_wday |\ntm_yday |\ntm_year |\ntime |\nvalid |\nvalue\n)\\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(?x:\nFIT_LIMIT |\nFIT_MAXITER |\nFIT_START_LAMBDA |\nFIT_LAMBDA_FACTOR |\nFIT_SKIP |\nFIT_INDEX\n)\\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(?x:\nupdate\n)\\b", "end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))", "name": "invalid.deprecated.command.gnuplot" }, { "begin": "\\b(?x:\nbreak |\nclear |\ncontinue |\npwd |\nrefresh |\nreplot
var gnuplot = [
lang
];
export { gnuplot as default };