aboutsummaryrefslogtreecommitdiff
path: root/helix-core
diff options
context:
space:
mode:
authorMichael Davis2022-08-25 22:24:09 +0000
committerBlaž Hrastnik2022-08-31 08:45:23 +0000
commit4e4c6da3bfdea0e50e460298eedf41d835f2a551 (patch)
tree54d82fb907d7e01d61fea6ceb3ada7584117c916 /helix-core
parentfa1dc7e5086e598eb04a34407d8c09e5605b3760 (diff)
Add query-check xtask
Diffstat (limited to 'helix-core')
-rw-r--r--helix-core/src/syntax.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs
index 06e9cbc0..6ec56bde 100644
--- a/helix-core/src/syntax.rs
+++ b/helix-core/src/syntax.rs
@@ -334,7 +334,7 @@ impl TextObjectQuery {
}
}
-fn read_query(language: &str, filename: &str) -> String {
+pub fn read_query(language: &str, filename: &str) -> String {
static INHERITS_REGEX: Lazy<Regex> =
Lazy::new(|| Regex::new(r";+\s*inherits\s*:?\s*([a-z_,()-]+)\s*").unwrap());