Incorrect color in SciNotes when "legend" present inside an if structure in a function
Reported by Federico Miyara
BUG DESCRIPTION:
----------------
When a "legend" clause is included within an "if" structure in a function, the "end" keyword closing the "if" is presented in brown, the color of the "endfunction", instead of the purple corresponding to the keywords of the "if" structure.
Strangely, when copying and pasting elsewhere (the html coding is used), the color is the expected purple.
ERROR LOG:
----------
N/A
HOW TO REPRODUCE THE BUG:
-------------------------
function y = testcolor()
if 1==1
y = sinc(t)
plot(t, y)
legend("sinc")
else
y = 1
end
endfunction
OTHER INFORMATION:
------------------
The same happens for the "for" structure, but not for "while" or "select", where the colors are the expected ones