@@ -18,13 +18,13 @@ const MAX_PAREN_HIGHLIGHT_DEPTH = 6
1818
1919Whether to use `julia_rainbow_{paren,bracket_curly}_{n}` faces for
2020delimitors/parentheses (`()`, `[]`, `{}`) as opposed to just using
21- `julia_parenthetical `.
21+ `julia_parentheses `.
2222"""
2323const RAINBOW_DELIMITERS_ENABLED = Ref (true )
2424"""
2525 UNMATCHED_DELIMITERS_ENABLED
2626
27- Whether to apply the `julia_unpaired_parenthetical ` face to unpaired closing
27+ Whether to apply the `julia_unpaired_parentheses ` face to unpaired closing
2828parenthesis (`)`, `]`, '}').
2929"""
3030const UNMATCHED_DELIMITERS_ENABLED = Ref (true )
@@ -83,24 +83,24 @@ const HIGHLIGHT_FACES = [
8383 :julia_comparator => Face (inherit = :julia_operator ),
8484 :julia_assignment => Face (foreground= :bright_red ),
8585 :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 ]),
8888 :julia_error => Face (background= :red ),
8989 # 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 ),
9393 :julia_rainbow_paren_4 => Face (inherit= :julia_rainbow_paren_1 ),
9494 :julia_rainbow_paren_5 => Face (inherit= :julia_rainbow_paren_2 ),
9595 :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 ),
9898 :julia_rainbow_bracket_3 => Face (inherit= :julia_rainbow_bracket_1 ),
9999 :julia_rainbow_bracket_4 => Face (inherit= :julia_rainbow_bracket_2 ),
100100 :julia_rainbow_bracket_5 => Face (inherit= :julia_rainbow_bracket_1 ),
101101 :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 ),
104104 :julia_rainbow_curly_3 => Face (inherit= :julia_rainbow_curly_1 ),
105105 :julia_rainbow_curly_4 => Face (inherit= :julia_rainbow_curly_2 ),
106106 :julia_rainbow_curly_5 => Face (inherit= :julia_rainbow_curly_1 ),
@@ -314,9 +314,9 @@ function _hl_annotations!(highlights::Vector{Tuple{UnitRange{Int}, Pair{Symbol,
314314 depth0
315315 end
316316 if pdepth <= 0 && UNMATCHED_DELIMITERS_ENABLED[]
317- :julia_unpaired_parenthetical
317+ :julia_unpaired_parentheses
318318 elseif ! RAINBOW_DELIMITERS_ENABLED[]
319- :julia_parenthetical
319+ :julia_parentheses
320320 else
321321 displaydepth = mod1 (pdepth, MAX_PAREN_HIGHLIGHT_DEPTH)
322322 Symbol (" julia_rainbow_$(ptype) _$(displaydepth) " )
0 commit comments