Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
grammars: Add `runnables.scm` for C++ (#57161)
Helmer Nordströmd42edc15f986
diff --git a/crates/grammars/src/cpp/runnables.scm b/crates/grammars/src/cpp/runnables.scmnew file mode 100644index 00000000000..fe540534793--- /dev/null+++ b/crates/grammars/src/cpp/runnables.scm@@ -0,0 +1,6 @@+; Tag the main function+((function_definition+ declarator: (function_declarator+ declarator: (identifier) @run)) @_cpp-main+ (#eq? @run "main")+ (#set! tag cpp-main))