Skip to content

Commit

Permalink
🐛 Fix scm
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Feb 13, 2024
1 parent 8040c19 commit 50f4c24
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ project(
tree-sitter-${LANGUAGE}
VERSION ${VERSION}
DESCRIPTION tree-sitter-${LANGUAGE}
HOMEPAGE_URL ${HOMEPAGE_URL})
HOMEPAGE_URL "${HOMEPAGE_URL}")
include_directories(src)
add_library(${LANGUAGE} SHARED src/parser.c)
set_target_properties(${LANGUAGE} PROPERTIES PREFIX "")
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
{
"scope": "source.hlsplaylist",
"file-types": [
"hlsplaylist",
"hlsplaylist8"
"m3u",
"m3u8"
]
}
]
Expand Down
12 changes: 5 additions & 7 deletions queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,26 @@

(tag_name) @keyword

(attribute_name) @variable.builtin
(attribute_name) @attribute

[
(dec)
(hex)
(resolution)
(range)
] @number

(float) @number.float

[
(resolution)
(range)
] @number.special

(string) @string

[
(title)
(enum)
(date_time_msec)
] @string.special

(title) @markup.heading

; Literals
["=" "x" "@"] @operator

Expand Down
2 changes: 1 addition & 1 deletion tests/test___init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_parser() -> None:
:rtype: None
"""
with open(
os.path.join(os.path.dirname(__file__), "zho.hlsplaylist"), "rb"
os.path.join(os.path.dirname(__file__), "zho.m3u"), "rb"
) as f:
text = f.read()
tree = parser.parse(text)
Expand Down

0 comments on commit 50f4c24

Please sign in to comment.