]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/gnuplot.yaml
Gnuplot Syntax highlighting (#2483)
[micro.git] / runtime / syntax / gnuplot.yaml
1 filetype: gnuplot
2
3 detect:
4     filename: "\\.(gnu|gpi|plt|gp)$"
5
6 rules:
7     - statement: "\\b(set|unset|plot|splot|replot|if|else|do|for|while|fit)\\b"
8     - symbol.operator: "[-+/*=<>?:!~%&|^$]"
9     - constant.number: "\\b([0-9]+|0x[0-9a-fA-F]*)\\b"
10     
11     - comment:
12         start: "#"
13         end: "$"
14         rules:
15             - todo: "TODO:?"