Create a special optimization for default_syntax in syntaxHighlight (note that this is only valid as long as default_syntax is empty) that just zeroes all visible lines without checking for string/comment/etc.
Also remove some unnecessary/redundant calls to syntaxHighlight (even the one in the main loop) by trying to cover all possible cases in which syntaxHighlight should be called, but not when it should have not effect, like when a blank line is added.
Create a special optimization for default_syntax in syntaxHighlight (note that this is only valid as long as default_syntax is empty) that just zeroes all visible lines without checking for string/comment/etc. Also remove some unnecessary/redundant calls to syntaxHighlight (even the one in the main loop) by trying to cover all possible cases in which syntaxHighlight should be called, but not when it should have not effect, like when a blank line is added.