diff options
| author | Connor Lay (Clay) <connorlay@pm.me> | 2021-10-06 14:36:22 -0700 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-10-13 01:31:49 +0200 |
| commit | 259e3f6e644bb21d9524ea2f4727c42625ad76f6 (patch) | |
| tree | 502c5b0c95dd47cd80ec8e86296073e33e95a3fc /queries | |
| parent | 886261a96b35f0b66b0135dd09cbf88aaeeef9c0 (diff) | |
Update indents & fix catch highlights
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/elixir/highlights.scm | 1 | ||||
| -rw-r--r-- | queries/elixir/indents.scm | 18 |
2 files changed, 5 insertions, 14 deletions
diff --git a/queries/elixir/highlights.scm b/queries/elixir/highlights.scm index 2cb14c10..228a0397 100644 --- a/queries/elixir/highlights.scm +++ b/queries/elixir/highlights.scm @@ -118,6 +118,7 @@ (call target: ((identifier) @keyword (#any-of? @keyword "alias" "case" + "catch" "cond" "else" "for" diff --git a/queries/elixir/indents.scm b/queries/elixir/indents.scm index ef0db390..2c141929 100644 --- a/queries/elixir/indents.scm +++ b/queries/elixir/indents.scm @@ -1,28 +1,18 @@ [ (arguments) - (call) (do_block) (list) (map) - (stab_expression) + (tuple) ] @indent -(stab_expression - right: (_) @indent) - [ - "(" ")" - "{" - "}" - "[" "]" + "end" + "}" (after_block) - (catch_block) (else_block) (rescue_block) - "do" - "end" + (catch_block) ] @branch - -(comment) @ignore |
