diff options
-rw-r--r-- | GnuLdLexer.g4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/GnuLdLexer.g4 b/GnuLdLexer.g4 index eb6090f..10475d8 100644 --- a/GnuLdLexer.g4 +++ b/GnuLdLexer.g4 @@ -160,7 +160,7 @@ QUOTE : '"' -> skip, pushMode(STRING); // | NAME # namePlain; //NAME : [\._a-zA-Z][\._a-zA-Z0-9]*; -NAME : [*\._a-zA-Z][*\.\/_a-zA-Z0-9]* | '/DISCARD/'; +NAME : [*\._a-zA-Z][*-\.\/_a-zA-Z0-9]* | '/DISCARD/'; // TODO: ld supports some really fancy expressions here, like "0101010b", "ffH", "ffx", "$Aa" etc //INT : '0x' [0-9a-fA-F]+ |