Skip to content

Commit 5967603

Browse files
Don't treat end as unknown.
1 parent 96e7a19 commit 5967603

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symbolic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Traverses an expression and finds incidences of Symbols and der(...)
112112
* `incidence`: array of incidences. New incidences of `ex` are pushed.
113113
"""
114114
findIncidence!(ex, incidence::Array{Incidence,1}) = nothing
115-
findIncidence!(s::Symbol, incidence::Array{Incidence,1}) = push!(incidence, s)
115+
findIncidence!(s::Symbol, incidence::Array{Incidence,1}) = if s in [:end]; else push!(incidence, s) end
116116
findIncidence!(arr::Array{Any,1}, incidence::Array{Incidence,1}) = [findIncidence!(a, incidence) for a in arr]
117117
findIncidence!(arr::Array{Expr,1}, incidence::Array{Incidence,1}) = [findIncidence!(a, incidence) for a in arr]
118118
function findIncidence!(ex::Expr, incidence::Array{Incidence,1})

0 commit comments

Comments
 (0)