1
0
Fork
You've already forked tree-sitter-gnuplot
0
Grammar for the Gnuplot scripting language
  • Gnuplot 50.7%
  • JavaScript 35.6%
  • Prolog 8.9%
  • Scheme 4.8%
2026年03月11日 10:36:52 +01:00
bindings feat: add initial grammar + test + highlight queries 2026年01月26日 23:51:09 +01:00
queries fix(queries): Fix incorrect highlights 2026年03月11日 10:36:52 +01:00
src chore: ran tree-sitter generate 2026年03月11日 10:36:52 +01:00
test/corpus feat: add support for multiple statements and print command 2026年01月28日 21:02:20 +01:00
.editorconfig feat: add initial grammar + test + highlight queries 2026年01月26日 23:51:09 +01:00
.gitattributes feat: add initial grammar + test + highlight queries 2026年01月26日 23:51:09 +01:00
.gitignore feat: add initial grammar + test + highlight queries 2026年01月26日 23:51:09 +01:00
binding.gyp feat: add initial grammar + test + highlight queries 2026年01月26日 23:51:09 +01:00
Cargo.toml feat: add initial grammar + test + highlight queries 2026年01月26日 23:51:09 +01:00
CMakeLists.txt feat: add initial grammar + test + highlight queries 2026年01月26日 23:51:09 +01:00
go.mod feat: add initial grammar + test + highlight queries 2026年01月26日 23:51:09 +01:00
grammar.js feat: add support for multiple statements and print command 2026年01月28日 21:02:20 +01:00
LICENSE chore: add 0BSD license text 2026年01月29日 21:20:12 +01:00
Makefile feat: add initial grammar + test + highlight queries 2026年01月26日 23:51:09 +01:00
package.json feat: add initial grammar + test + highlight queries 2026年01月26日 23:51:09 +01:00
pyproject.toml feat: add initial grammar + test + highlight queries 2026年01月26日 23:51:09 +01:00
range-test.gnuplot feat: add initial grammar + test + highlight queries 2026年01月26日 23:51:09 +01:00
README.md feat: add initial grammar + test + highlight queries 2026年01月26日 23:51:09 +01:00
setup.py feat: add initial grammar + test + highlight queries 2026年01月26日 23:51:09 +01:00
tree-sitter.json feat: add initial grammar + test + highlight queries 2026年01月26日 23:51:09 +01:00

Tree Sitter Grammar for the Gnuplot Scripting Language

This provides a minimal and basic tree-sitter grammar for gnuplot language.

https://github.com/dpezto/tree-sitter-gnuplot already provides a very sophisticated and complete gnuplot grammar.

The downside of the grammar in that repo is that the generated C source is 870K lines of code and building the WASM version of the parse runs into the OOM reaper on a 64 GiB RAM system.

This grammar is a lot less ambitious with correctness and completeness. It aims to be good enough for basic syntax highlighting while still being fast.