From: Chris Lattner Date: Tue, 4 Dec 2001 04:31:30 +0000 (+0000) Subject: Allow hyphens in identifier names X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9a88d278dd00c5a61c38cc520e218949cf430923;p=oota-llvm.git Allow hyphens in identifier names git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1409 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 \"[^\"]+\"