mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
feat: add luap
This commit is contained in:
parent
d4e48be88d
commit
c9d7918901
4 changed files with 48 additions and 0 deletions
|
|
@ -261,6 +261,7 @@ We are looking for maintainers to add more parsers and to write query files for
|
||||||
- [x] [ledger](https://github.com/cbarrete/tree-sitter-ledger) (maintained by @cbarrete)
|
- [x] [ledger](https://github.com/cbarrete/tree-sitter-ledger) (maintained by @cbarrete)
|
||||||
- [x] [llvm](https://github.com/benwilliamgraham/tree-sitter-llvm) (maintained by @benwilliamgraham)
|
- [x] [llvm](https://github.com/benwilliamgraham/tree-sitter-llvm) (maintained by @benwilliamgraham)
|
||||||
- [x] [lua](https://github.com/MunifTanjim/tree-sitter-lua) (maintained by @muniftanjim)
|
- [x] [lua](https://github.com/MunifTanjim/tree-sitter-lua) (maintained by @muniftanjim)
|
||||||
|
- [x] [lua patterns](https://github.com/vhyrro/tree-sitter-luap) (maintained by @amaanq)
|
||||||
- [x] [m68k](https://github.com/grahambates/tree-sitter-m68k) (maintained by @grahambates)
|
- [x] [m68k](https://github.com/grahambates/tree-sitter-m68k) (maintained by @grahambates)
|
||||||
- [x] [make](https://github.com/alemuller/tree-sitter-make) (maintained by @lewis6991)
|
- [x] [make](https://github.com/alemuller/tree-sitter-make) (maintained by @lewis6991)
|
||||||
- [x] [markdown](https://github.com/MDeiml/tree-sitter-markdown) (experimental, maintained by @MDeiml)
|
- [x] [markdown](https://github.com/MDeiml/tree-sitter-markdown) (experimental, maintained by @MDeiml)
|
||||||
|
|
|
||||||
|
|
@ -263,6 +263,9 @@
|
||||||
"lua": {
|
"lua": {
|
||||||
"revision": "0fc89962b7ff5c7d676b8592c1cbce1ceaa806fd"
|
"revision": "0fc89962b7ff5c7d676b8592c1cbce1ceaa806fd"
|
||||||
},
|
},
|
||||||
|
"luap": {
|
||||||
|
"revision": "ebc6739bf8900a0191a386ef53371fc556c662a8"
|
||||||
|
},
|
||||||
"m68k": {
|
"m68k": {
|
||||||
"revision": "d097b123f19c6eaba2bf181c05420d88b9fc489d"
|
"revision": "d097b123f19c6eaba2bf181c05420d88b9fc489d"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -855,6 +855,15 @@ list.lua = {
|
||||||
maintainers = { "@muniftanjim" },
|
maintainers = { "@muniftanjim" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.luap = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/amaanq/tree-sitter-luap",
|
||||||
|
files = { "src/parser.c" },
|
||||||
|
readme_name = "lua patterns",
|
||||||
|
},
|
||||||
|
maintainers = { "@amaanq" },
|
||||||
|
}
|
||||||
|
|
||||||
list.m68k = {
|
list.m68k = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/grahambates/tree-sitter-m68k",
|
url = "https://github.com/grahambates/tree-sitter-m68k",
|
||||||
|
|
|
||||||
35
queries/luap/highlights.scm
Normal file
35
queries/luap/highlights.scm
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
"." @character
|
||||||
|
|
||||||
|
[
|
||||||
|
(anchor_begin)
|
||||||
|
(anchor_end)
|
||||||
|
] @string.escape
|
||||||
|
|
||||||
|
[
|
||||||
|
"[" "]"
|
||||||
|
"(" ")"
|
||||||
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
[
|
||||||
|
(zero_or_more)
|
||||||
|
(shortest_zero_or_more)
|
||||||
|
(one_or_more)
|
||||||
|
(zero_or_one)
|
||||||
|
] @operator
|
||||||
|
|
||||||
|
(range
|
||||||
|
from: (character) @constant
|
||||||
|
"-" @punctuation.delimiter
|
||||||
|
to: (character) @constant)
|
||||||
|
|
||||||
|
(set
|
||||||
|
(character) @constant)
|
||||||
|
|
||||||
|
(class) @keyword
|
||||||
|
|
||||||
|
(negated_set
|
||||||
|
"^" @operator
|
||||||
|
(character) @constant)
|
||||||
|
|
||||||
|
(balanced_match
|
||||||
|
(character) @parameter)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue