diff options
| author | Wu Zhenyu <wuzhenyu@ustc.edu> | 2024-02-12 13:45:13 +0800 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-02-14 16:06:13 +0100 |
| commit | 5a5cabd712b8bd14768c72034479fb9cd176beb6 (patch) | |
| tree | e22105d54718851c957b9d9bf2079b33f2da9349 /queries | |
| parent | Update parsers: tcl, wing (diff) | |
| download | nvim-treesitter-5a5cabd712b8bd14768c72034479fb9cd176beb6.tar nvim-treesitter-5a5cabd712b8bd14768c72034479fb9cd176beb6.tar.gz nvim-treesitter-5a5cabd712b8bd14768c72034479fb9cd176beb6.tar.bz2 nvim-treesitter-5a5cabd712b8bd14768c72034479fb9cd176beb6.tar.lz nvim-treesitter-5a5cabd712b8bd14768c72034479fb9cd176beb6.tar.xz nvim-treesitter-5a5cabd712b8bd14768c72034479fb9cd176beb6.tar.zst nvim-treesitter-5a5cabd712b8bd14768c72034479fb9cd176beb6.zip | |
feat: add the hlsplaylist parser
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/hlsplaylist/highlights.scm | 41 | ||||
| -rw-r--r-- | queries/hlsplaylist/injections.scm | 2 |
2 files changed, 43 insertions, 0 deletions
diff --git a/queries/hlsplaylist/highlights.scm b/queries/hlsplaylist/highlights.scm new file mode 100644 index 000000000..9852aed6d --- /dev/null +++ b/queries/hlsplaylist/highlights.scm @@ -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 diff --git a/queries/hlsplaylist/injections.scm b/queries/hlsplaylist/injections.scm new file mode 100644 index 000000000..2f0e58eb6 --- /dev/null +++ b/queries/hlsplaylist/injections.scm @@ -0,0 +1,2 @@ +((comment) @injection.content + (#set! injection.language "comment")) |
