feat: add elsa

This commit is contained in:
Amaan Qureshi 2023-01-29 12:03:04 -05:00 committed by ObserverOfTime
parent cda8b291ef
commit cbb43a64a3
4 changed files with 53 additions and 0 deletions

View file

@ -202,6 +202,7 @@ We are looking for maintainers to add more parsers and to write query files for
- [x] [eex](https://github.com/connorlay/tree-sitter-eex) (maintained by @connorlay)
- [x] [elixir](https://github.com/elixir-lang/tree-sitter-elixir) (maintained by @connorlay)
- [x] [elm](https://github.com/elm-tooling/tree-sitter-elm) (maintained by @zweimach)
- [x] [elsa](https://github.com/glapa-grossklag/tree-sitter-elsa) (maintained by @glapa-grossklag, @amaanq)
- [x] [elvish](https://github.com/ckafi/tree-sitter-elvish) (maintained by @ckafi)
- [ ] [embedded_template](https://github.com/tree-sitter/tree-sitter-embedded-template)
- [x] [erlang](https://github.com/WhatsApp/tree-sitter-erlang) (maintained by @filmor)

View file

@ -89,6 +89,9 @@
"elm": {
"revision": "28bb193640d916dfaf947912c1413cebb0484841"
},
"elsa": {
"revision": "86fb3dbe8462f299dfc9a93c718a11363d69e90f"
},
"elvish": {
"revision": "f32711e31e987fd5c2c002f3daba02f25c68672f"
},

View file

@ -201,6 +201,14 @@ list.d = {
experimental = true,
}
list.elsa = {
install_info = {
url = "https://github.com/glapa-grossklag/tree-sitter-elsa",
files = { "src/parser.c" },
},
maintainers = { "@glapa-grossklag", "@amaanq" },
}
list.glsl = {
install_info = {
url = "https://github.com/theHamsta/tree-sitter-glsl",

View file

@ -0,0 +1,41 @@
; Keywords
[
"eval"
"let"
] @keyword
; Function
(function) @function
; Method
(method) @method
; Parameter
(parameter) @parameter
; Variables
(identifier) @variable
; Operators
[
"\\"
"->"
"="
(step)
] @operator
; Punctuation
["(" ")"] @punctuation.bracket
":" @punctuation.delimiter
; Comments
(comment) @comment