mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
feat: add poe_filter
This commit is contained in:
parent
ce6390393a
commit
de459332e2
7 changed files with 60 additions and 0 deletions
|
|
@ -271,6 +271,7 @@ We are looking for maintainers to add more parsers and to write query files for
|
|||
- [x] [php](https://github.com/tree-sitter/tree-sitter-php) (maintained by @tk-shirasaka)
|
||||
- [x] [phpdoc](https://github.com/claytonrcarter/tree-sitter-phpdoc) (experimental, maintained by @mikehaertl)
|
||||
- [x] [pioasm](https://github.com/leo60228/tree-sitter-pioasm) (maintained by @leo60228)
|
||||
- [x] [Path of Exile item filter](https://github.com/ObserverOfTime/tree-sitter-poe-filter) (experimental, maintained by @ObserverOfTime)
|
||||
- [x] [prisma](https://github.com/victorhqc/tree-sitter-prisma) (maintained by @elianiva)
|
||||
- [x] [proto](https://github.com/mitchellh/tree-sitter-proto) (maintained by @fsouza)
|
||||
- [x] [pug](https://github.com/zealot128/tree-sitter-pug) (experimental, maintained by @zealot128)
|
||||
|
|
|
|||
|
|
@ -296,6 +296,9 @@
|
|||
"pioasm": {
|
||||
"revision": "924aadaf5dea2a6074d72027b064f939acf32e20"
|
||||
},
|
||||
"poe_filter": {
|
||||
"revision": "80dc10195e26c72598ed1ab02cdf2d8e4c792e7b"
|
||||
},
|
||||
"prisma": {
|
||||
"revision": "eca2596a355b1a9952b4f80f8f9caed300a272b5"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1443,6 +1443,17 @@ list.ini = {
|
|||
experimental = true,
|
||||
}
|
||||
|
||||
list.poe_filter = {
|
||||
install_info = {
|
||||
url = "https://github.com/ObserverOfTime/tree-sitter-poe-filter",
|
||||
files = { "src/parser.c" },
|
||||
},
|
||||
maintainers = { "@ObserverOfTime" },
|
||||
experimental = true,
|
||||
filetype = "poefilter",
|
||||
readme_name = "Path of Exile item filter",
|
||||
}
|
||||
|
||||
local M = {
|
||||
list = list,
|
||||
filetype_to_parsername = filetype_to_parsername,
|
||||
|
|
|
|||
1
queries/poe_filter/folds.scm
Normal file
1
queries/poe_filter/folds.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
(block) @fold
|
||||
38
queries/poe_filter/highlights.scm
Normal file
38
queries/poe_filter/highlights.scm
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
["Show" "Hide" "Minimal"] @namespace
|
||||
|
||||
(condition (name) @conditional)
|
||||
(action (name) @keyword)
|
||||
(continue) @label
|
||||
|
||||
(operator) @operator
|
||||
|
||||
(string) @string @spell
|
||||
|
||||
(file) @string
|
||||
|
||||
[
|
||||
(quality)
|
||||
(rarity)
|
||||
(influence)
|
||||
(colour)
|
||||
(shape)
|
||||
] @constant.builtin
|
||||
|
||||
(sockets) @variable.builtin
|
||||
|
||||
(number) @number
|
||||
|
||||
(boolean) @boolean
|
||||
|
||||
[
|
||||
(disable)
|
||||
"Temp"
|
||||
] @constant
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
"\"" @punctuation.delimiter
|
||||
|
||||
("\"" @conceal
|
||||
(#not-has-parent? @conceal string file)
|
||||
(#set! conceal ""))
|
||||
5
queries/poe_filter/indents.scm
Normal file
5
queries/poe_filter/indents.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
(block) @indent
|
||||
|
||||
(ERROR) @auto
|
||||
|
||||
(comment) @ignore
|
||||
1
queries/poe_filter/injections.scm
Normal file
1
queries/poe_filter/injections.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
(comment) @comment
|
||||
Loading…
Add table
Add a link
Reference in a new issue