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.
1 parent 0033b22 commit 9211496Copy full SHA for 9211496
queries/test.scm
@@ -0,0 +1 @@
1
+(if_statement (block))
tester/test.dart
@@ -1,6 +1,7 @@
#! /usr/bin/env dcli
2
3
import 'dart:io';
4
+
5
// import 'package:dcli/dcli.dart';
6
import 'package:path/path.dart';
7
@@ -15,6 +16,11 @@ void main(List<String> args) async {
15
16
"Usage: dart tester/test.dart /path/to/directory/for/testing parse/highlight/query [query.scm]");
17
return;
18
}
19
+ if (File(args[0]).existsSync()) {
20
+ await runTreeSitterSingle(
21
+ [args[0]], args[1], args.length == 3 ? args[2] : null);
22
+ return;
23
+ }
24
final files = Directory(args[0])
25
.listSync(recursive: true)
26
.whereType<File>()
0 commit comments