Добавляем символ подчеркивания в разрешенные для наименования переменных и функций

This commit is contained in:
2022-05-03 19:58:19 +03:00
parent e45aed2da8
commit a3c5a803ca

View File

@@ -356,9 +356,9 @@ public:
while (isspace(LastChar))
LastChar = getLastChar();
if (isalpha(LastChar)) { // идентификатор: [a-zA-Z][a-zA-Z0-9]*
if (isalpha(LastChar) || LastChar == '_') { // идентификатор: [a-zA-Z][a-zA-Z0-9]*
IdentifierStr = LastChar;
while (isalnum((LastChar = getLastChar()))){
while (isalnum((LastChar = getLastChar())) || LastChar == '_'){
IdentifierStr += LastChar;
}