diff --git a/components/compiler/scanner.cpp b/components/compiler/scanner.cpp index f25e69e399..3c5bb77475 100644 --- a/components/compiler/scanner.cpp +++ b/components/compiler/scanner.cpp @@ -175,7 +175,7 @@ namespace Compiler { value += c; } - else if (isStringCharacter (c)) + else if (c!='-' && isStringCharacter (c)) { error = true; value += c;