Skip to content

Commit 79cfe22

Browse files
authored
Detect access call and quoted atom delimiters (#83)
Also performs a minor regrouping of queries
1 parent 4d3045c commit 79cfe22

1 file changed

Lines changed: 26 additions & 12 deletions

File tree

languages/elixir/brackets.scm

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,39 @@
22
"{" @open
33
"}" @close)
44

5+
(map
6+
"{" @open
7+
"}" @close)
8+
59
(list
610
"[" @open
711
"]" @close)
812

13+
(access_call
14+
"[" @open
15+
"]" @close)
16+
917
(block
1018
"(" @open
1119
")" @close)
1220

13-
(map
14-
"{" @open
15-
"}" @close)
16-
17-
(do_block
18-
"do" @open
19-
"end" @close)
20-
2121
(arguments
2222
"(" @open
2323
")" @close)
2424

25-
(anonymous_function
26-
"fn" @open
27-
"end" @close)
28-
2925
(unary_operator
3026
operator: "&"
3127
"(" @open
3228
")" @close)
3329

30+
(do_block
31+
"do" @open
32+
"end" @close)
33+
34+
(anonymous_function
35+
"fn" @open
36+
"end" @close)
37+
3438
(interpolation
3539
"#{" @open
3640
"}" @close
@@ -51,6 +55,16 @@
5155
quoted_end: _ @close
5256
(#set! rainbow.exclude))
5357

58+
(quoted_atom
59+
quoted_start: _ @open
60+
quoted_end: _ @close
61+
(#set! rainbow.exclude))
62+
63+
(quoted_keyword
64+
quoted_start: _ @open
65+
quoted_end: _ @close
66+
(#set! rainbow.exclude))
67+
5468
(sigil
5569
quoted_start: _ @open
5670
quoted_end: _ @close

0 commit comments

Comments
 (0)