fix: variable names containing '_' are not correctly handled

This commit is contained in:
Roy Qu 2022-01-15 11:01:01 +08:00
parent a102ee73fa
commit bf17e494fd
6 changed files with 6 additions and 6 deletions

View File

@ -585,7 +585,7 @@ void CppTokenizer::skipToNextToken()
bool CppTokenizer::isIdentChar(const QChar &ch)
{
return ch.isLetter();
return ch=='_' || ch.isLetter() ;
}
void CppTokenizer::advance()

View File

@ -4,7 +4,7 @@ Name=GLUT
Icon=CL_GLUT.ico
Description=A simple GLUT program
Description[zh_CN]=一个简单的GLUT程序
Category=Multimedia
Category=3D
Category[zh_CN]=3D
[Unit0]

View File

@ -4,7 +4,7 @@ Name=GLFW
Description=A simple GLFW program
Description[zh_CN]=一个简单的GLFW程序
Icon=GLFW.ico
Category=Multimedia
Category=3D
Category[zh_CN]=3D
[Unit0]

View File

@ -6,7 +6,7 @@ Icon=Communication.ico
Description=A classic Hello World program
Description[zh_CN]=一个经典的“世界,你好!”程序
Category=Console
Category=控制台
Category[zh_CN]=控制台
[Unit0]
CName=main.c

View File

@ -4,7 +4,7 @@ Name=OpenGL
Icon=Pizza.ico
Description=A basic OpenGL program
Description[zh_CN]=一个基本的OpenGL程序
Category=Multimedia
Category=3D
Category[zh_CN]=3D
[Unit0]

View File

@ -5,7 +5,7 @@ Name[zh_CN]=raylib 3D
Icon=raylib.ico
Description=A simple 3D program using raylib ( https://raylib.com )
Description[zh_CN]=简单的raylib 3D程序 ( https://raylib.com )
Category=Multimedia
Category=3D
Category[zh_CN]=3D
[Unit0]