Skip to content

Commit

Permalink
fix: variable names containing '_' are not correctly handled
Browse files Browse the repository at this point in the history
  • Loading branch information
royqh1979 committed Jan 15, 2022
1 parent a102ee7 commit bf17e49
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion RedPandaIDE/parser/cpptokenizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ void CppTokenizer::skipToNextToken()

bool CppTokenizer::isIdentChar(const QChar &ch)
{
return ch.isLetter();
return ch=='_' || ch.isLetter() ;
}

void CppTokenizer::advance()
Expand Down
2 changes: 1 addition & 1 deletion templates/CL_GLUT.template
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion templates/GLFW.template
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion templates/Hello.template
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion templates/OpenGL.template
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion templates/raylib_3d.template
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit bf17e49

Please sign in to comment.