aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlex.l
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2023-07-12 15:10:10 +0200
committerMichael Matz <matz@suse.de>2023-07-13 17:21:06 +0200
commitf6f78318fca803c4907fb8d7f6ded8295f1947b1 (patch)
tree9cf054e87f1dbdcc39778a7696501e076c422f40 /ld/ldlex.l
parent22e90ac5af46c01ee4972cf04e835266862bbb35 (diff)
downloadbinutils-f6f78318fca803c4907fb8d7f6ded8295f1947b1.zip
binutils-f6f78318fca803c4907fb8d7f6ded8295f1947b1.tar.gz
binutils-f6f78318fca803c4907fb8d7f6ded8295f1947b1.tar.bz2
Let '^' through the lexer
so that the (existing) code in parser and expression evaluator actually get to see it and handle it as XOR. Also adjust docu to match what's there.
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r--ld/ldlex.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldlex.l b/ld/ldlex.l
index 1a6be1b..9cb0024 100644
--- a/ld/ldlex.l
+++ b/ld/ldlex.l
@@ -247,6 +247,7 @@ V_IDENTIFIER [*?.$_a-zA-Z\[\]\-\!\^\\]([*?.$_a-zA-Z0-9\[\]\-\!\^\\]|::)*
<EXPRESSION,MRI>"/" { RTOKEN('/'); }
<EXPRESSION,MRI>"%" { RTOKEN('%'); }
<EXPRESSION,MRI>"<" { RTOKEN('<'); }
+<EXPRESSION,MRI>"^" { RTOKEN('^'); }
<SCRIPT,EXPRESSION,MRI,WILD>"=" { RTOKEN('='); }
<SCRIPT,EXPRESSION,MRI,WILD>"}" { RTOKEN('}'); }
<SCRIPT,EXPRESSION,MRI,WILD>"{" { RTOKEN('{'); }