aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/AsmParser/Lexer.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AsmParser/Lexer.l b/lib/AsmParser/Lexer.l
index e843e5e631..50da49adcc 100644
--- a/lib/AsmParser/Lexer.l
+++ b/lib/AsmParser/Lexer.l
@@ -89,10 +89,10 @@ char *UnEscapeLexed(char *Buffer, bool AllowNull = false) {
Comment ;.*
/* Variable(Value) identifiers start with a % sign */
-VarID %[a-zA-Z$._][a-zA-Z$._0-9]*
+VarID %[-a-zA-Z$._][-a-zA-Z$._0-9]*
/* Label identifiers end with a colon */
-Label [a-zA-Z$._0-9]+:
+Label [-a-zA-Z$._0-9]+:
/* Quoted names can contain any character except " and \ */
StringConstant \"[^\"]+\"