summaryrefslogtreecommitdiff
path: root/support/texlab/crates/syntax/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/crates/syntax/src/lib.rs')
-rw-r--r--support/texlab/crates/syntax/src/lib.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/support/texlab/crates/syntax/src/lib.rs b/support/texlab/crates/syntax/src/lib.rs
index c2c0552652..dc8761b73d 100644
--- a/support/texlab/crates/syntax/src/lib.rs
+++ b/support/texlab/crates/syntax/src/lib.rs
@@ -20,16 +20,3 @@ pub struct BuildError {
pub struct BuildLog {
pub errors: Vec<BuildError>,
}
-
-#[macro_export]
-macro_rules! match_ast {
- (match $node:ident { $($tt:tt)* }) => { $crate::match_ast!(match ($node) { $($tt)* }) };
-
- (match ($node:expr) {
- $( $( $path:ident )::+ ($it:pat) => $res:expr, )*
- _ => $catch_all:expr $(,)?
- }) => {{
- $( if let Some($it) = $($path::)+cast($node.clone()) { $res } else )*
- { $catch_all }
- }};
-}