ninja-ide/ninja-ide — pull request #1123 by nelsam (2013-02-28 22:28:52+00:00)
Title: Possible Fix For Issue 1083

As I mentioned in my comment on issue 1083, it seems legitimate. Both Highlighter and SyntaxHighlighter were expecting to be able to access attributes that are set in the SyntaxUserData constructor, even in cases where they were getting back a QTextBlockUserData. For me, this caused Ninja IDE to stop highlighting syntax every time I started using it.

My fix is most likely not the best one, but it is a possible fix. After creating the fix, I'm no longer getting any errors in my output, and syntax highlighting doesn't disappear as soon as I start typing.