Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion queries/csharp.scm
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
;;!! () => 2;
;;! ^
(lambda_expression
body: (_) @value @interior
body: (_) @value
(#not-type? @value block initializer_expression)
) @_.domain

Expand Down
10 changes: 5 additions & 5 deletions queries/java.scm
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,6 @@
name: (_) @name @functionName
) @namedFunction @_.domain

;;!! ((value) -> true)
;;! ^^^^^^^^^^^^^^^
(lambda_expression) @anonymousFunction

;;!! "string"
;;! ^^^^^^^^
(
Expand Down Expand Up @@ -537,11 +533,15 @@
(_) @value
) @_.domain

;;!! ((value) -> true)
;;! ^^^^^^^^^^^^^^^
(lambda_expression) @anonymousFunction

;;!! str -> str.length > 0
;;! ^^^^^^^^^^^^^^
;;! ---------------------
(lambda_expression
body: (_) @value @interior
body: (_) @value
(#not-type? @value block)
) @_.domain

Expand Down
2 changes: 1 addition & 1 deletion queries/javascript.core.scm
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@
;;! ^
;;! --------
(arrow_function
body: (_) @value @interior
body: (_) @value
(#not-type? @value statement_block)
) @_.domain

Expand Down
10 changes: 4 additions & 6 deletions queries/python.scm
Original file line number Diff line number Diff line change
Expand Up @@ -406,12 +406,6 @@
function: (_) @functionCallee
) @_.domain

;;!! lambda _: pass
;;! ^^^^^^^^^^^^^^
(lambda
body: (_) @interior
) @anonymousFunction @interior.domain

;;!! match value:
;;! ^^^^^
(match_statement
Expand Down Expand Up @@ -726,6 +720,10 @@
(#child-range! @argumentList 1 -2)
) @argumentList.domain @argumentOrParameter.iteration.domain

;;!! lambda _: pass
;;! ^^^^^^^^^^^^^^
(lambda) @anonymousFunction

;;!! lambda a, b: pass
;;! ^^^^
(lambda
Expand Down
Loading