-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(bindings): add query constants to python
- Loading branch information
1 parent
647d2e5
commit 9bd1ae5
Showing
6 changed files
with
40 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
"CAMEL_PARSER_NAME grammar for tree-sitter" | ||
"""CAMEL_PARSER_NAME grammar for tree-sitter""" | ||
|
||
from importlib.resources import files as _files | ||
|
||
from ._binding import language | ||
|
||
__all__ = ["language"] | ||
# NOTE: uncomment these to include any queries that this grammar contains: | ||
|
||
# HIGHLIGHTS_QUERY = _files(f"{__package__}.queries").joinpath("highlights.scm").read_text() | ||
# INJECTIONS_QUERY = _files(f"{__package__}.queries").joinpath("injections.scm").read_text() | ||
# LOCALS_QUERY = _files(f"{__package__}.queries").joinpath("locals.scm").read_text() | ||
# TAGS_QUERY = _files(f"{__package__}.queries").joinpath("tags.scm").read_text() | ||
|
||
__all__ = [ | ||
"language", | ||
# "HIGHLIGHTS_QUERY", | ||
# "INJECTIONS_QUERY", | ||
# "LOCALS_QUERY", | ||
# "TAGS_QUERY", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
from typing import Final | ||
|
||
# NOTE: uncomment these to include any queries that this grammar contains: | ||
|
||
# HIGHLIGHTS_QUERY: Final[str] | ||
# INJECTIONS_QUERY: Final[str] | ||
# LOCALS_QUERY: Final[str] | ||
# TAGS_QUERY: Final[str] | ||
|
||
def language() -> int: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters