Replaced T_INT_LITERAL and T_FLOAT_LITERAL with T_NUMERIC_LITERAL.

This commit is contained in:
Roberto Raggi
2009-07-10 15:44:47 +02:00
parent 017d865330
commit 3e54a65a69
7 changed files with 12 additions and 14 deletions

View File

@@ -125,7 +125,7 @@ void CppHighlighter::highlightBlock(const QString &text)
(tk.isKeyword() || tk.is(T_IDENTIFIER)) && isPPKeyword(tk.text()))
setFormat(tk.position(), tk.length(), m_formats[CppPreprocessorFormat]);
else if (tk.is(T_INT_LITERAL) || tk.is(T_FLOAT_LITERAL))
else if (tk.is(T_NUMERIC_LITERAL))
setFormat(tk.position(), tk.length(), m_formats[CppNumberFormat]);
else if (tk.is(T_STRING_LITERAL) || tk.is(T_CHAR_LITERAL) || tk.is(T_ANGLE_STRING_LITERAL) ||