mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Добавляем символ подчеркивания в разрешенные для наименования переменных и функций
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user