mirror of
https://github.com/kristoferssolo/tree-sitter-bruno.git
synced 2026-02-04 06:22:07 +00:00
feat(queries): add tags and folds
This commit is contained in:
4
bindings/python/tree_sitter_bruno/__init__.py
generated
4
bindings/python/tree_sitter_bruno/__init__.py
generated
@@ -20,8 +20,8 @@ def __getattr__(name):
|
||||
return _get_query("INJECTIONS_QUERY", "injections.scm")
|
||||
# if name == "LOCALS_QUERY":
|
||||
# return _get_query("LOCALS_QUERY", "locals.scm")
|
||||
# if name == "TAGS_QUERY":
|
||||
# return _get_query("TAGS_QUERY", "tags.scm")
|
||||
if name == "TAGS_QUERY":
|
||||
return _get_query("TAGS_QUERY", "tags.scm")
|
||||
|
||||
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
||||
|
||||
|
||||
2
bindings/python/tree_sitter_bruno/__init__.pyi
generated
2
bindings/python/tree_sitter_bruno/__init__.pyi
generated
@@ -5,6 +5,6 @@ from typing import Final
|
||||
HIGHLIGHTS_QUERY: Final[str]
|
||||
INJECTIONS_QUERY: Final[str]
|
||||
# LOCALS_QUERY: Final[str]
|
||||
# TAGS_QUERY: Final[str]
|
||||
TAGS_QUERY: Final[str]
|
||||
|
||||
def language() -> object: ...
|
||||
|
||||
2
bindings/rust/lib.rs
generated
2
bindings/rust/lib.rs
generated
@@ -39,7 +39,7 @@ pub const NODE_TYPES: &str = include_str!("../../src/node-types.json");
|
||||
pub const HIGHLIGHTS_QUERY: &str = include_str!("../../queries/highlights.scm");
|
||||
pub const INJECTIONS_QUERY: &str = include_str!("../../queries/injections.scm");
|
||||
// pub const LOCALS_QUERY: &str = include_str!("../../queries/locals.scm");
|
||||
// pub const TAGS_QUERY: &str = include_str!("../../queries/tags.scm");
|
||||
pub const TAGS_QUERY: &str = include_str!("../../queries/tags.scm");
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
|
||||
Reference in New Issue
Block a user