]> git.lizzy.rs Git - micro.git/commitdiff
Gnuplot Syntax highlighting (#2483)
authorraidenXR <70112686+raidenXR@users.noreply.github.com>
Sun, 17 Jul 2022 19:17:11 +0000 (15:17 -0400)
committerGitHub <noreply@github.com>
Sun, 17 Jul 2022 19:17:11 +0000 (12:17 -0700)
* gnuplot syntax support

* Update gnuplot.yaml

* Add files via upload

* Update gnuplot.yaml

runtime/syntax/gnuplot.yaml [new file with mode: 0644]

diff --git a/runtime/syntax/gnuplot.yaml b/runtime/syntax/gnuplot.yaml
new file mode 100644 (file)
index 0000000..cf324f6
--- /dev/null
@@ -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:?"