@@ -18,13 +18,13 @@ const MAX_PAREN_HIGHLIGHT_DEPTH = 6
18
18
19
19
Whether to use `julia_rainbow_{paren,bracket_curly}_{n}` faces for
20
20
delimitors/parentheses (`()`, `[]`, `{}`) as opposed to just using
21
- `julia_parenthetical `.
21
+ `julia_parentheses `.
22
22
"""
23
23
const RAINBOW_DELIMITERS_ENABLED = Ref (true )
24
24
"""
25
25
UNMATCHED_DELIMITERS_ENABLED
26
26
27
- Whether to apply the `julia_unpaired_parenthetical ` face to unpaired closing
27
+ Whether to apply the `julia_unpaired_parentheses ` face to unpaired closing
28
28
parenthesis (`)`, `]`, '}').
29
29
"""
30
30
const UNMATCHED_DELIMITERS_ENABLED = Ref (true )
@@ -83,24 +83,24 @@ const HIGHLIGHT_FACES = [
83
83
:julia_comparator => Face (inherit = :julia_operator ),
84
84
:julia_assignment => Face (foreground= :bright_red ),
85
85
:julia_keyword => Face (foreground= :red ),
86
- :julia_parenthetical => Face (),
87
- :julia_unpaired_parenthetical => Face (inherit= [:julia_error , :julia_parenthetical ]),
86
+ :julia_parentheses => Face (),
87
+ :julia_unpaired_parentheses => Face (inherit= [:julia_error , :julia_parentheses ]),
88
88
:julia_error => Face (background= :red ),
89
89
# Rainbow delimitors (1-6, (), [], and {})
90
- :julia_rainbow_paren_1 => Face (foreground= :bright_green , inherit= :julia_parenthetical ),
91
- :julia_rainbow_paren_2 => Face (foreground= :bright_blue , inherit= :julia_parenthetical ),
92
- :julia_rainbow_paren_3 => Face (foreground= :bright_red , inherit= :julia_parenthetical ),
90
+ :julia_rainbow_paren_1 => Face (foreground= :bright_green , inherit= :julia_parentheses ),
91
+ :julia_rainbow_paren_2 => Face (foreground= :bright_blue , inherit= :julia_parentheses ),
92
+ :julia_rainbow_paren_3 => Face (foreground= :bright_red , inherit= :julia_parentheses ),
93
93
:julia_rainbow_paren_4 => Face (inherit= :julia_rainbow_paren_1 ),
94
94
:julia_rainbow_paren_5 => Face (inherit= :julia_rainbow_paren_2 ),
95
95
:julia_rainbow_paren_6 => Face (inherit= :julia_rainbow_paren_3 ),
96
- :julia_rainbow_bracket_1 => Face (foreground= :blue , inherit= :julia_parenthetical ),
97
- :julia_rainbow_bracket_2 => Face (foreground= :bright_magenta , inherit= :julia_parenthetical ),
96
+ :julia_rainbow_bracket_1 => Face (foreground= :blue , inherit= :julia_parentheses ),
97
+ :julia_rainbow_bracket_2 => Face (foreground= :bright_magenta , inherit= :julia_parentheses ),
98
98
:julia_rainbow_bracket_3 => Face (inherit= :julia_rainbow_bracket_1 ),
99
99
:julia_rainbow_bracket_4 => Face (inherit= :julia_rainbow_bracket_2 ),
100
100
:julia_rainbow_bracket_5 => Face (inherit= :julia_rainbow_bracket_1 ),
101
101
:julia_rainbow_bracket_6 => Face (inherit= :julia_rainbow_bracket_2 ),
102
- :julia_rainbow_curly_1 => Face (foreground= :bright_yellow , inherit= :julia_parenthetical ),
103
- :julia_rainbow_curly_2 => Face (foreground= :yellow , inherit= :julia_parenthetical ),
102
+ :julia_rainbow_curly_1 => Face (foreground= :bright_yellow , inherit= :julia_parentheses ),
103
+ :julia_rainbow_curly_2 => Face (foreground= :yellow , inherit= :julia_parentheses ),
104
104
:julia_rainbow_curly_3 => Face (inherit= :julia_rainbow_curly_1 ),
105
105
:julia_rainbow_curly_4 => Face (inherit= :julia_rainbow_curly_2 ),
106
106
:julia_rainbow_curly_5 => Face (inherit= :julia_rainbow_curly_1 ),
@@ -314,9 +314,9 @@ function _hl_annotations!(highlights::Vector{Tuple{UnitRange{Int}, Pair{Symbol,
314
314
depth0
315
315
end
316
316
if pdepth <= 0 && UNMATCHED_DELIMITERS_ENABLED[]
317
- :julia_unpaired_parenthetical
317
+ :julia_unpaired_parentheses
318
318
elseif ! RAINBOW_DELIMITERS_ENABLED[]
319
- :julia_parenthetical
319
+ :julia_parentheses
320
320
else
321
321
displaydepth = mod1 (pdepth, MAX_PAREN_HIGHLIGHT_DEPTH)
322
322
Symbol (" julia_rainbow_$(ptype) _$(displaydepth) " )
0 commit comments