diff options
author | Chris Lattner <sabre@nondot.org> | 2001-12-04 04:31:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-12-04 04:31:30 +0000 |
commit | 9a88d278dd00c5a61c38cc520e218949cf430923 (patch) | |
tree | e1f750b69101075d6022aa870e3b9d298ed26f90 | |
parent | 7a1767520611d9ff6face702068de858e1cadf2c (diff) |
Allow hyphens in identifier names
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1409 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AsmParser/Lexer.l | 4 |
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 \"[^\"]+\" |