From 5a8dbc6347b3541e84fe669b22c17ad3b715e258 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 21 Jan 2026 20:22:09 +0100 Subject: Engage! --- queries/javascript.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 queries/javascript.scm (limited to 'queries/javascript.scm') diff --git a/queries/javascript.scm b/queries/javascript.scm new file mode 100644 index 0000000..f58999b --- /dev/null +++ b/queries/javascript.scm @@ -0,0 +1,36 @@ +(function_declaration name: (identifier) @function) +(method_definition name: (property_identifier) @function) +(call_expression function: (identifier) @function) +(call_expression function: (member_expression property: (property_identifier) @function)) +(string) @string +(number) @number +(comment) @comment +[ + "function" + "return" + "if" + "else" + "for" + "while" + "do" + "switch" + "case" + "default" + "break" + "continue" + "var" + "let" + "const" + "try" + "catch" + "finally" + "class" + "extends" + "import" + "export" + "default" + "from" + "async" + "await" + "new" +] @keyword -- cgit v1.2.3