Skip to content

Commit

Permalink
go highlighter fix label
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Aug 4, 2014
1 parent 4e46e56 commit e207ed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions liteidex/src/plugins/golangedit/golanghighlighter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ void GolangHighlighter::highlightBlock(const QString &text)
setFormat(tk.begin(), tk.length(), m_creatorFormats[SyntaxHighlighter::BuiltinFunc]);
} else if (tk.isGoPredecl()) {
setFormat(tk.begin(), tk.length(), m_creatorFormats[SyntaxHighlighter::Predeclared]);
} else if (i == 0 && tokens.size() > 1 && tk.is(T_IDENTIFIER) && tokens.at(1).is(T_COLON)) {
setFormat(tk.begin(), tk.length(), m_creatorFormats[SyntaxHighlighter::String]);
} else if (i == 0 && tokens.size() > 1 && tokens.at(0).begin() == 0 && tk.is(T_IDENTIFIER) && tokens.at(1).is(T_COLON)) {
setFormat(tk.begin(), tk.length(), m_creatorFormats[SyntaxHighlighter::DataType]);
} else if (tk.is(T_IDENTIFIER)) {
// highlightWord(text.midRef(tk.begin(), tk.length()), tk.begin(), tk.length());
}
Expand Down

0 comments on commit e207ed8

Please sign in to comment.