diff options
| author | ObserverOfTime <chronobserver@disroot.org> | 2023-08-15 21:36:44 +0300 |
|---|---|---|
| committer | ObserverOfTime <chronobserver@disroot.org> | 2023-08-17 11:24:41 +0300 |
| commit | f7bb866405530e863135596900781e73cbf6f4ed (patch) | |
| tree | d11cb48b547bcef225e92016000e9963bcd94c90 /queries/gpg | |
| parent | Update README (diff) | |
| download | nvim-treesitter-f7bb866405530e863135596900781e73cbf6f4ed.tar nvim-treesitter-f7bb866405530e863135596900781e73cbf6f4ed.tar.gz nvim-treesitter-f7bb866405530e863135596900781e73cbf6f4ed.tar.bz2 nvim-treesitter-f7bb866405530e863135596900781e73cbf6f4ed.tar.lz nvim-treesitter-f7bb866405530e863135596900781e73cbf6f4ed.tar.xz nvim-treesitter-f7bb866405530e863135596900781e73cbf6f4ed.tar.zst nvim-treesitter-f7bb866405530e863135596900781e73cbf6f4ed.zip | |
feat: add gpg config parser
Diffstat (limited to 'queries/gpg')
| -rw-r--r-- | queries/gpg/highlights.scm | 49 | ||||
| -rw-r--r-- | queries/gpg/injections.scm | 2 |
2 files changed, 51 insertions, 0 deletions
diff --git a/queries/gpg/highlights.scm b/queries/gpg/highlights.scm new file mode 100644 index 000000000..55833027e --- /dev/null +++ b/queries/gpg/highlights.scm @@ -0,0 +1,49 @@ +(option . _ @keyword) + +(option + ("no-" @parameter)? + (name) @parameter) + +(string (content) @string) + +[ + (value) + "clear" +] @string.special + +(url) @text.uri + +(key) @constant + +[ + (number) + (expire_time) + (iso_time) +] @number + +(format) @character.special + +"sensitive:" @type.qualifier + +(filter_name) @parameter + +(filter_scope) @namespace + +(filter_property) @property + +(filter_value) @string + +[ + (filter_op0) + (filter_op1) + (filter_lc) + "=" +] @operator + +"!" @punctuation.special + +[ "\"" "'" "," ] @punctuation.delimiter + +(comment) @comment @spell + +(ERROR) @error diff --git a/queries/gpg/injections.scm b/queries/gpg/injections.scm new file mode 100644 index 000000000..321c90add --- /dev/null +++ b/queries/gpg/injections.scm @@ -0,0 +1,2 @@ +((comment) @injection.content + (#set! injection.language "comment")) |
