mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 01:10:02 -04:00
feat: add the hlsplaylist parser
This commit is contained in:
parent
883c72cddc
commit
5a5cabd712
5 changed files with 55 additions and 0 deletions
|
|
@ -264,6 +264,7 @@ We are looking for maintainers to add more parsers and to write query files for
|
||||||
- [x] [heex](https://github.com/connorlay/tree-sitter-heex) (maintained by @connorlay)
|
- [x] [heex](https://github.com/connorlay/tree-sitter-heex) (maintained by @connorlay)
|
||||||
- [x] [hjson](https://github.com/winston0410/tree-sitter-hjson) (maintained by @winston0410)
|
- [x] [hjson](https://github.com/winston0410/tree-sitter-hjson) (maintained by @winston0410)
|
||||||
- [x] [hlsl](https://github.com/theHamsta/tree-sitter-hlsl) (maintained by @theHamsta)
|
- [x] [hlsl](https://github.com/theHamsta/tree-sitter-hlsl) (maintained by @theHamsta)
|
||||||
|
- [x] [hlsplaylist](https://github.com/Freed-Wu/tree-sitter-hlsplaylist) (maintained by @Freed-Wu)
|
||||||
- [x] [hocon](https://github.com/antosha417/tree-sitter-hocon) (maintained by @antosha417)
|
- [x] [hocon](https://github.com/antosha417/tree-sitter-hocon) (maintained by @antosha417)
|
||||||
- [x] [hoon](https://github.com/urbit-pilled/tree-sitter-hoon) (experimental, maintained by @urbit-pilled)
|
- [x] [hoon](https://github.com/urbit-pilled/tree-sitter-hoon) (experimental, maintained by @urbit-pilled)
|
||||||
- [x] [html](https://github.com/tree-sitter/tree-sitter-html) (maintained by @TravonteD)
|
- [x] [html](https://github.com/tree-sitter/tree-sitter-html) (maintained by @TravonteD)
|
||||||
|
|
|
||||||
|
|
@ -272,6 +272,9 @@
|
||||||
"hlsl": {
|
"hlsl": {
|
||||||
"revision": "3ade6d065c69cd72c4da966d0c0af98bfb512f16"
|
"revision": "3ade6d065c69cd72c4da966d0c0af98bfb512f16"
|
||||||
},
|
},
|
||||||
|
"hlsplaylist": {
|
||||||
|
"revision": "be3a18abfa9cef1f792324beb1f1e1c9ddba2748"
|
||||||
|
},
|
||||||
"hocon": {
|
"hocon": {
|
||||||
"revision": "c390f10519ae69fdb03b3e5764f5592fb6924bcc"
|
"revision": "c390f10519ae69fdb03b3e5764f5592fb6924bcc"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1123,6 +1123,14 @@ list.luau = {
|
||||||
maintainers = { "@amaanq" },
|
maintainers = { "@amaanq" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.hlsplaylist = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/Freed-Wu/tree-sitter-hlsplaylist",
|
||||||
|
files = { "src/parser.c" },
|
||||||
|
},
|
||||||
|
maintainers = { "@Freed-Wu" },
|
||||||
|
}
|
||||||
|
|
||||||
list.m68k = {
|
list.m68k = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/grahambates/tree-sitter-m68k",
|
url = "https://github.com/grahambates/tree-sitter-m68k",
|
||||||
|
|
|
||||||
41
queries/hlsplaylist/highlights.scm
Normal file
41
queries/hlsplaylist/highlights.scm
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
; Comments
|
||||||
|
(comment) @comment @spell
|
||||||
|
|
||||||
|
; General
|
||||||
|
(uri) @string.special.url
|
||||||
|
|
||||||
|
(tag_name) @keyword
|
||||||
|
|
||||||
|
(attribute_name) @attribute
|
||||||
|
|
||||||
|
[
|
||||||
|
(dec)
|
||||||
|
(hex)
|
||||||
|
(resolution)
|
||||||
|
(range)
|
||||||
|
] @number
|
||||||
|
|
||||||
|
(float) @number.float
|
||||||
|
|
||||||
|
(string) @string
|
||||||
|
|
||||||
|
[
|
||||||
|
(enum)
|
||||||
|
(date_time_msec)
|
||||||
|
] @string.special
|
||||||
|
|
||||||
|
(title) @markup.heading
|
||||||
|
|
||||||
|
; Literals
|
||||||
|
[
|
||||||
|
"="
|
||||||
|
"x"
|
||||||
|
"@"
|
||||||
|
] @operator
|
||||||
|
|
||||||
|
[
|
||||||
|
":"
|
||||||
|
","
|
||||||
|
] @punctuation.delimiter
|
||||||
|
|
||||||
|
"#" @punctuation.special
|
||||||
2
queries/hlsplaylist/injections.scm
Normal file
2
queries/hlsplaylist/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