Skip to content

Commit 769b53d

Browse files
authored
finish the if-else rule tree formating started in e34cc37 (#19)
1 parent e34cc37 commit 769b53d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/JuliaSyntaxHighlighting.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ function _hl_annotations!(highlights::Vector{@NamedTuple{region::UnitRange{Int},
338338
name = Symbol(view(regionstr, (1+argoffset-span(arg1[end])):argoffset))
339339
ifelse(name in BUILTIN_FUNCTIONS, :julia_builtin, :julia_funcall)
340340
end
341-
elseif syntax_errors && JuliaSyntax.is_error(nkind); :julia_error
341+
elseif syntax_errors && JuliaSyntax.is_error(nkind)
342+
:julia_error
342343
elseif ((depthchange, ptype) = paren_type(nkind)) |> last != :none
343344
depthref = getfield(pdepths, ptype)
344345
pdepth = if depthchange > 0

0 commit comments

Comments
 (0)