Skip to content

Commit ef46c34

Browse files
authored
fix(ruby): exclude strings from bracket colorization (#281)
Rainbow brackets do not really make sense for strings (or string interpolation) - this disables the feature from them to reduce noise
1 parent 303d43d commit ef46c34

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

languages/ruby/brackets.scm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"}" @close)
99

1010
("\"" @open
11-
"\"" @close)
11+
"\"" @close
12+
(#set! rainbow.exclude))
1213

1314
("do" @open
1415
"end" @close)
@@ -19,7 +20,8 @@
1920

2021
(interpolation
2122
"#{" @open
22-
"}" @close)
23+
"}" @close
24+
(#set! rainbow.exclude))
2325

2426
(if
2527
"if" @open

0 commit comments

Comments
 (0)