mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 22:40:12 -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
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