mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
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:
parent
7a17675206
commit
9a88d278dd
@ -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 \"[^\"]+\"
|
||||
|
Loading…
Reference in New Issue
Block a user