feat: add the hlsplaylist parser

This commit is contained in:
Wu Zhenyu 2024-02-12 13:45:13 +08:00 committed by Christian Clason
parent 883c72cddc
commit 5a5cabd712
5 changed files with 55 additions and 0 deletions

View 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

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))