summaryrefslogtreecommitdiff
path: root/queries/javascript.scm
blob: f58999bd941ff96cf641e0f9692b84453eab4bba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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