From fc21fc9816329c2ab21284734cd564292304059d Mon Sep 17 00:00:00 2001 From: raidenXR <70112686+raidenXR@users.noreply.github.com> Date: Sun, 17 Jul 2022 15:17:11 -0400 Subject: [PATCH] Gnuplot Syntax highlighting (#2483) * gnuplot syntax support * Update gnuplot.yaml * Add files via upload * Update gnuplot.yaml --- runtime/syntax/gnuplot.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 runtime/syntax/gnuplot.yaml diff --git a/runtime/syntax/gnuplot.yaml b/runtime/syntax/gnuplot.yaml new file mode 100644 index 00000000..cf324f6f --- /dev/null +++ b/runtime/syntax/gnuplot.yaml @@ -0,0 +1,15 @@ +filetype: gnuplot + +detect: + filename: "\\.(gnu|gpi|plt|gp)$" + +rules: + - statement: "\\b(set|unset|plot|splot|replot|if|else|do|for|while|fit)\\b" + - symbol.operator: "[-+/*=<>?:!~%&|^$]" + - constant.number: "\\b([0-9]+|0x[0-9a-fA-F]*)\\b" + + - comment: + start: "#" + end: "$" + rules: + - todo: "TODO:?" -- 2.44.0