diff --git a/languages/cairo/runnables.scm b/languages/cairo/runnables.scm new file mode 100644 index 0000000..83a6549 --- /dev/null +++ b/languages/cairo/runnables.scm @@ -0,0 +1,12 @@ +; ( +; (attribute_item (attribute +; [((identifier) @_attribute) +; (scoped_identifier (identifier) @_attribute) +; ]) +; (#eq? @_attribute "test")) +; . +; (attribute_item) * +; . +; (function_item +; name: (_) @run) +; ) @cairo-test diff --git a/languages/cairo/tasks.json b/languages/cairo/tasks.json index 90d97fb..527b1f3 100644 --- a/languages/cairo/tasks.json +++ b/languages/cairo/tasks.json @@ -19,6 +19,12 @@ "command": "scarb", "args": ["test"] }, + { + "label": "scarb test", + "command": "scarb", + "args": ["test", "-f", "$ZED_SYMBOL"], + "tags": ["cairo-test"] + }, { "label": "scarb clean", "command": "scarb",