feat: add poe_filter

This commit is contained in:
ObserverOfTime 2022-10-08 21:25:05 +03:00
parent ce6390393a
commit de459332e2
7 changed files with 60 additions and 0 deletions

View file

@ -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)

View file

@ -296,6 +296,9 @@
"pioasm": {
"revision": "924aadaf5dea2a6074d72027b064f939acf32e20"
},
"poe_filter": {
"revision": "80dc10195e26c72598ed1ab02cdf2d8e4c792e7b"
},
"prisma": {
"revision": "eca2596a355b1a9952b4f80f8f9caed300a272b5"
},

View file

@ -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,

View file

@ -0,0 +1 @@
(block) @fold

View 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 ""))

View file

@ -0,0 +1,5 @@
(block) @indent
(ERROR) @auto
(comment) @ignore

View file

@ -0,0 +1 @@
(comment) @comment