aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2016-07-17 17:01:41 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2016-07-17 17:01:41 +0200
commitc543a2f713184ccf6a5e9077dbfb985bdc7c5b4b (patch)
treebf725421180674511536371cf7cb548e02f2f610
parentd2df6908de9df354bbd4c07d39893002cf1f8c00 (diff)
downloadelfinfo-c543a2f713184ccf6a5e9077dbfb985bdc7c5b4b.tar.gz
elfinfo-c543a2f713184ccf6a5e9077dbfb985bdc7c5b4b.tar.bz2
elfinfo-c543a2f713184ccf6a5e9077dbfb985bdc7c5b4b.tar.xz
elfinfo-c543a2f713184ccf6a5e9077dbfb985bdc7c5b4b.zip
lexer: even dashes can be in a NAME.
-rw-r--r--GnuLdLexer.g42
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]+