diff --git a/bacon.toml b/bacon.toml index 1c0870aa..de42f3d6 100644 --- a/bacon.toml +++ b/bacon.toml @@ -55,9 +55,15 @@ command = [ "cargo", "run", "--color", "always" ] need_stdout = true allow_warnings = true +[jobs.parser] +command = [ "treesitter", "test" ] +need_stdout = true +allow_warnings = true + # You may define here keybindings that would be specific to # a project, for example a shortcut to launch a specific job. # Shortcuts to internal functions (scrolling, toggling, etc.) # should go in your personal prefs.toml file instead. [keybindings] n = "job:nextest" +p = "job:parser" diff --git a/examples/simple_exprs.tk b/examples/simple_exprs.tk index b56d1b0f..8964a6f4 100644 --- a/examples/simple_exprs.tk +++ b/examples/simple_exprs.tk @@ -1,6 +1,7 @@ #!/usr/bin/env tako // test: all +/* /* */*/ 0; (0); diff --git a/tree-sitter-tako/watch_highlight.sh b/tree-sitter-tako/watch_highlight.sh new file mode 100755 index 00000000..f445240e --- /dev/null +++ b/tree-sitter-tako/watch_highlight.sh @@ -0,0 +1 @@ +while true; do clear && tree-sitter highlight test.tk; sleep 2; done