Skip to content

Commit b89dd99

Browse files
committed
Actually use the syntax_errors argument
🤦
1 parent fee6aa5 commit b89dd99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JuliaSyntaxHighlighting.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ function _hl_annotations!(highlights::Vector{Tuple{UnitRange{Int}, Pair{Symbol,
303303
name = Symbol(regionstr)
304304
ifelse(name in BUILTIN_FUNCTIONS, :julia_builtin, :julia_funcall)
305305
end
306-
elseif JuliaSyntax.is_error(nkind); :julia_error
306+
elseif syntax_errors && JuliaSyntax.is_error(nkind); :julia_error
307307
elseif ((depthchange, ptype) = paren_type(nkind)) |> last != :none
308308
depthref = getfield(pdepths, ptype)
309309
pdepth = if depthchange > 0

0 commit comments

Comments
 (0)