Skip to content

Commit

Permalink
Code style improvements in queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Hubro committed Aug 16, 2023
1 parent 8c9e825 commit 322e4cc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@
[
(section_header)
(setting_statement)
(keyword_setting)
(test_case_setting)
] @keyword

(variable_definition (variable_name) @variable)

(keyword_definition (name) @function)
(keyword_definition (body (keyword_setting) @keyword))

(test_case_definition (name) @function)
(test_case_definition (body (test_case_setting) @keyword))

(keyword_invocation (keyword) @function.call)
(ellipses) @punctuation.delimiter
Expand All @@ -35,11 +33,12 @@
"IN RANGE"
"IN ENUMERATE"
"IN ZIP"
"WHILE"
(break_statement)
(continue_statement)
] @repeat
(for_statement "END" @repeat)

"WHILE" @repeat
(while_statement "END" @repeat)

[
Expand Down

0 comments on commit 322e4cc

Please sign in to comment.