From 24383d19290096a4c58adb0258d8ae99cf3305e5 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Thu, 18 Sep 2025 10:20:34 +0200 Subject: [PATCH] feat(epics_msi_template): add parser and queries --- SUPPORTED_LANGUAGES.md | 2 ++ lua/nvim-treesitter/parsers.lua | 9 +++++++++ .../queries/epics_msi_template/highlights.scm | 16 ++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 runtime/queries/epics_msi_template/highlights.scm diff --git a/SUPPORTED_LANGUAGES.md b/SUPPORTED_LANGUAGES.md index 3386e6bf2..8734fb1e3 100644 --- a/SUPPORTED_LANGUAGES.md +++ b/SUPPORTED_LANGUAGES.md @@ -76,6 +76,7 @@ ecma (queries only)[^ecma] | unstable | `HFIJL` | | @steelsojka [elvish](https://github.com/elves/tree-sitter-elvish) | unstable | `H  J ` | | @elves [embedded_template](https://github.com/tree-sitter/tree-sitter-embedded-template) | unstable | `H  J ` | | [enforce](https://github.com/simonvic/tree-sitter-enforce) | unstable | `HFIJL` | | @simonvic +[epics_msi_template](https://github.com/minijackson/tree-sitter-epics-msi-template)[^epics_msi_template] | unstable | `H    ` | | @minijackson [erlang](https://github.com/WhatsApp/tree-sitter-erlang) | unstable | `HF J ` | | @filmor [facility](https://github.com/FacilityApi/tree-sitter-facility) | unstable | `HFIJ ` | | @bryankenote [faust](https://github.com/khiner/tree-sitter-faust) | unstable | `H  J ` | | @khiner @@ -342,6 +343,7 @@ jsx (queries only)[^jsx] | unstable | `HFIJ ` | | @steelsojka [ziggy_schema](https://github.com/kristoff-it/ziggy) | unstable | `H I  ` | | @rockorager [^bp]: Android Blueprint [^ecma]: queries required by javascript, typescript, tsx, qmljs +[^epics_msi_template]: EPICS macros [^gap]: GAP system [^gaptst]: GAP system test files [^gdscript]: Godot diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index 34a5aa04e..49c82369d 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -518,6 +518,15 @@ return { maintainers = { '@simonvic' }, tier = 2, }, + epics_msi_template = { + install_info = { + revision = 'c9885dbef3e99a22a8c8600200f5167cbfda4e88', + url = 'https://github.com/minijackson/tree-sitter-epics-msi-template', + }, + maintainers = { '@minijackson' }, + readme_note = 'EPICS macros', + tier = 2, + }, erlang = { install_info = { revision = 'df268da05d8ed4837dd2a8e2af1906619c2f0aa0', diff --git a/runtime/queries/epics_msi_template/highlights.scm b/runtime/queries/epics_msi_template/highlights.scm new file mode 100644 index 000000000..0a566ebce --- /dev/null +++ b/runtime/queries/epics_msi_template/highlights.scm @@ -0,0 +1,16 @@ +(variable) @constant.macro + +(string) @string + +(escape_sequence) @string.escape + +[ + "${" + "$(" + "}" + ")" +] @punctuation.bracket + +"=" @punctuation.special + +"," @punctuation.delimiter