wip toward drawRect
@@ -1432,6 +1432,7 @@ class TextBuffer(BackingTextBuffer):
col = k-self.view.scrollCol
if length:
window.addStr(i, col, line, color)
+ if 1:
if node.grammar.get('spelling', True):
# Highlight spelling errors
grammarName = node.grammar.get('name', 'unknown')
@@ -1443,6 +1444,7 @@ class TextBuffer(BackingTextBuffer):
window.addStr(i, col+reg[0], word,
curses.color_pair(color) | curses.A_BOLD |
curses.A_REVERSE)
+ if 1:
# Highlight keywords.
keywordsColor = node.grammar.get('keywordsColor', defaultColor)
for found in node.grammar['keywordsRe'].finditer(line):
