mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 20:09:14 +03:00
Добавляем символ подчеркивания в разрешенные для наименования переменных и функций
This commit is contained in:
@@ -356,9 +356,9 @@ public:
|
|||||||
while (isspace(LastChar))
|
while (isspace(LastChar))
|
||||||
LastChar = getLastChar();
|
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;
|
IdentifierStr = LastChar;
|
||||||
while (isalnum((LastChar = getLastChar()))){
|
while (isalnum((LastChar = getLastChar())) || LastChar == '_'){
|
||||||
IdentifierStr += LastChar;
|
IdentifierStr += LastChar;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user