Allow hyphens in identifier names

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1409 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-12-04 04:31:30 +00:00
parent 7a17675206
commit 9a88d278dd

View File

@ -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 \"[^\"]+\"