Need to use expression_statement here.
This commit is contained in:
parent
8546a71c31
commit
00dcc1eaa6
1 changed files with 5 additions and 1 deletions
|
|
@ -9,10 +9,14 @@ fn test_tags_javascript() {
|
|||
r#"
|
||||
((function_definition
|
||||
name: (identifier) @name
|
||||
body: (block . (string) @doc)) @function
|
||||
body: (block . (expression_statement (string) @doc))) @function
|
||||
(set! replace @doc "(^['\s]*)|(['\s]*$)"))
|
||||
(function_definition
|
||||
name: (identifier) @name) @function
|
||||
((class_definition
|
||||
name: (identifier) @name
|
||||
body: (block . (expression_statement (string) @doc))) @class
|
||||
(set! replace @doc "(^['\s]*)|(['\s]*$)"))
|
||||
(class_definition
|
||||
name: (identifier) @name) @class
|
||||
(call
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue