topiary_queries/
lib.rs

1/// Returns the Topiary-compatible query file for Bash.
2#[cfg(feature = "bash")]
3pub fn bash() -> &'static str {
4    include_str!("../queries/bash.scm")
5}
6
7/// Returns the Topiary-compatible query file for CSS.
8#[cfg(feature = "css")]
9pub fn css() -> &'static str {
10    include_str!("../queries/css.scm")
11}
12
13/// Returns the Topiary-compatible query file for Json.
14#[cfg(feature = "json")]
15pub fn json() -> &'static str {
16    include_str!("../queries/json.scm")
17}
18
19/// Returns the Topiary-compatible query file for Nickel.
20#[cfg(feature = "nickel")]
21pub fn nickel() -> &'static str {
22    include_str!("../queries/nickel.scm")
23}
24
25/// Returns the Topiary-compatible query file for Ocaml.
26#[cfg(feature = "ocaml")]
27pub fn ocaml() -> &'static str {
28    include_str!("../queries/ocaml.scm")
29}
30
31/// Returns the Topiary-compatible query file for Ocaml Interface.
32#[cfg(feature = "ocaml_interface")]
33pub fn ocaml_interface() -> &'static str {
34    include_str!("../queries/ocaml_interface.scm")
35}
36
37/// Returns the Topiary-compatible query file for Ocamllex.
38#[cfg(feature = "ocamllex")]
39pub fn ocamllex() -> &'static str {
40    include_str!("../queries/ocamllex.scm")
41}
42
43/// Returns the Topiary-compatible query file for OpenSCAD.
44#[cfg(feature = "openscad")]
45pub fn openscad() -> &'static str {
46    include_str!("../queries/openscad.scm")
47}
48
49/// Returns the Topiary-compatible query file for Rust.
50#[cfg(feature = "rust")]
51pub fn rust() -> &'static str {
52    include_str!("../queries/rust.scm")
53}
54
55/// Returns the Topiary-compatible query file for SDML.
56#[cfg(feature = "sdml")]
57pub fn sdml() -> &'static str {
58    include_str!("../queries/sdml.scm")
59}
60
61/// Returns the Topiary-compatible query file for Toml.
62#[cfg(feature = "toml")]
63pub fn toml() -> &'static str {
64    include_str!("../queries/toml.scm")
65}
66
67/// Returns the Topiary-compatible query file for the
68/// Tree-sitter query language.
69#[cfg(feature = "tree_sitter_query")]
70pub fn tree_sitter_query() -> &'static str {
71    include_str!("../queries/tree_sitter_query.scm")
72}
73
74/// Returns the Topiary-compatible query file for WIT.
75#[cfg(feature = "wit")]
76pub fn wit() -> &'static str {
77    include_str!("../queries/wit.scm")
78}