From e40cd82f8c12ca3d0a3b0e9c89737acf940def44 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Tue, 29 Sep 2009 11:34:11 +0200 Subject: Introduced T_CPP_COMMENT and T_CPP_DOXY_COMMENT to handle C++-style comments and improved CPPEditor::isInComment to handle the newly introduced tokens. As side effect,this change should fix the regression we introduced in the "automagically" quote/brace insertion. --- src/shared/cplusplus/Lexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/cplusplus/Lexer.cpp') diff --git a/src/shared/cplusplus/Lexer.cpp b/src/shared/cplusplus/Lexer.cpp index a9ef6cce3f..79c9bf4af1 100644 --- a/src/shared/cplusplus/Lexer.cpp +++ b/src/shared/cplusplus/Lexer.cpp @@ -428,7 +428,7 @@ void Lexer::scan_helper(Token *tok) if (! f._scanCommentTokens) goto _Lagain; - tok->f.kind = doxy ? T_DOXY_COMMENT : T_COMMENT; + tok->f.kind = doxy ? T_CPP_DOXY_COMMENT : T_CPP_COMMENT; } else if (_yychar == '*') { yyinp(); -- cgit v1.2.1