mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
feat: add gpg config parser
This commit is contained in:
parent
04cab345e9
commit
f7bb866405
5 changed files with 63 additions and 0 deletions
|
|
@ -238,6 +238,7 @@ We are looking for maintainers to add more parsers and to write query files for
|
||||||
- [x] [gomod](https://github.com/camdencheek/tree-sitter-go-mod) (maintained by @camdencheek)
|
- [x] [gomod](https://github.com/camdencheek/tree-sitter-go-mod) (maintained by @camdencheek)
|
||||||
- [x] [gosum](https://github.com/amaanq/tree-sitter-go-sum) (maintained by @amaanq)
|
- [x] [gosum](https://github.com/amaanq/tree-sitter-go-sum) (maintained by @amaanq)
|
||||||
- [x] [gowork](https://github.com/omertuc/tree-sitter-go-work) (maintained by @omertuc)
|
- [x] [gowork](https://github.com/omertuc/tree-sitter-go-work) (maintained by @omertuc)
|
||||||
|
- [x] [gpg](https://github.com/ObserverOfTime/tree-sitter-gpg-config) (maintained by @ObserverOfTime)
|
||||||
- [x] [graphql](https://github.com/bkegley/tree-sitter-graphql) (maintained by @bkegley)
|
- [x] [graphql](https://github.com/bkegley/tree-sitter-graphql) (maintained by @bkegley)
|
||||||
- [x] [groovy](https://github.com/Decodetalkers/tree-sitter-groovy) (maintained by @Decodetalkers)
|
- [x] [groovy](https://github.com/Decodetalkers/tree-sitter-groovy) (maintained by @Decodetalkers)
|
||||||
- [ ] [hack](https://github.com/slackhq/tree-sitter-hack)
|
- [ ] [hack](https://github.com/slackhq/tree-sitter-hack)
|
||||||
|
|
|
||||||
|
|
@ -194,6 +194,9 @@
|
||||||
"gowork": {
|
"gowork": {
|
||||||
"revision": "949a8a470559543857a62102c84700d291fc984c"
|
"revision": "949a8a470559543857a62102c84700d291fc984c"
|
||||||
},
|
},
|
||||||
|
"gpg": {
|
||||||
|
"revision": "af97733568c8141090d8a79dfff66806c96c2cc0"
|
||||||
|
},
|
||||||
"graphql": {
|
"graphql": {
|
||||||
"revision": "5e66e961eee421786bdda8495ed1db045e06b5fe"
|
"revision": "5e66e961eee421786bdda8495ed1db045e06b5fe"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -623,6 +623,14 @@ list.gowork = {
|
||||||
maintainers = { "@omertuc" },
|
maintainers = { "@omertuc" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.gpg = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/ObserverOfTime/tree-sitter-gpg-config",
|
||||||
|
files = { "src/parser.c" },
|
||||||
|
},
|
||||||
|
maintainers = { "@ObserverOfTime" },
|
||||||
|
}
|
||||||
|
|
||||||
list.groovy = {
|
list.groovy = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/Decodetalkers/tree-sitter-groovy",
|
url = "https://github.com/Decodetalkers/tree-sitter-groovy",
|
||||||
|
|
|
||||||
49
queries/gpg/highlights.scm
Normal file
49
queries/gpg/highlights.scm
Normal file
|
|
@ -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
|
||||||
2
queries/gpg/injections.scm
Normal file
2
queries/gpg/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
||||||
Loading…
Add table
Add a link
Reference in a new issue