From 9a88d278dd00c5a61c38cc520e218949cf430923 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 4 Dec 2001 04:31:30 +0000 Subject: [PATCH] Allow hyphens in identifier names git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1409 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AsmParser/Lexer.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/AsmParser/Lexer.l b/lib/AsmParser/Lexer.l index e843e5e6318..50da49adcc6 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 \"[^\"]+\" -- 2.34.1