We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c09f746 + b96c015 commit cebac48Copy full SHA for cebac48
1 file changed
languages/tree-sitter-stack-graphs-typescript/build.rs
@@ -41,6 +41,10 @@ fn preprocess(
41
bail!("Line {line_no}: unexpected code before directive");
42
}
43
44
+ if filter.is_some() {
45
+ bail!("Line {line_no}: dialect directive cannot be nested");
46
+ }
47
+
48
let directive = captures.get(1).unwrap().as_str();
49
if !DIALECTS.contains(&directive) {
50
bail!("Line {line_no}: unknown dialect: {directive}");
@@ -64,6 +68,10 @@ fn preprocess(
64
68
output.write(b"\n")?;
65
69
66
70
71
72
+ bail!("Unmatched directive end at the end of the file");
73
74
67
75
Ok(())
76
77
0 commit comments