diff --git a/src/shared/cplusplus/Lexer.cpp b/src/shared/cplusplus/Lexer.cpp
index ab3c35e67bea94c9251d745611962cbebb138345..88ccd334ce86316a42ed83d4105985910f03c557 100644
--- a/src/shared/cplusplus/Lexer.cpp
+++ b/src/shared/cplusplus/Lexer.cpp
@@ -410,6 +410,9 @@ void Lexer::scan_helper(Token *tok)
             if (_yychar == '/' || _yychar == '!') {
                 yyinp();
 
+                if (_yychar == '<')
+                    yyinp();
+
                 if (_yychar != '\n' && std::isspace(_yychar))
                     doxy = true;
             }
@@ -435,6 +438,9 @@ void Lexer::scan_helper(Token *tok)
                 if (ch == '*' && _yychar == '/')
                     goto _Ldone;
 
+                if (_yychar == '<')
+                    yyinp();
+
                 if (! _yychar || std::isspace(_yychar))
                     doxy = true;
             }