From 4e35ae6f71f5b734ffd876cf8661630cea3a26ae Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Thu, 10 Aug 2023 11:35:27 +0300 Subject: feat: add pymanifest parser --- queries/pymanifest/highlights.scm | 22 ++++++++++++++++++++++ queries/pymanifest/injections.scm | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 queries/pymanifest/highlights.scm create mode 100644 queries/pymanifest/injections.scm (limited to 'queries') diff --git a/queries/pymanifest/highlights.scm b/queries/pymanifest/highlights.scm new file mode 100644 index 000000000..f2522443e --- /dev/null +++ b/queries/pymanifest/highlights.scm @@ -0,0 +1,22 @@ +(keyword) @keyword + +(dir_sep) @punctuation.delimiter + +(glob) @punctuation.special + +(linebreak) @character.special + +(char_sequence) @string.special + +(char_sequence + [ "[" "]" ] @punctuation.bracket) + +(char_sequence "!" @operator) + +(char_range "-" @operator) + +(escaped_char) @string.escape + +(ERROR) @error + +(comment) @comment diff --git a/queries/pymanifest/injections.scm b/queries/pymanifest/injections.scm new file mode 100644 index 000000000..321c90add --- /dev/null +++ b/queries/pymanifest/injections.scm @@ -0,0 +1,2 @@ +((comment) @injection.content + (#set! injection.language "comment")) -- cgit v1.3.1