diff options
author | Michael Matz <matz@suse.de> | 2023-07-12 15:10:10 +0200 |
---|---|---|
committer | Michael Matz <matz@suse.de> | 2023-07-13 17:21:06 +0200 |
commit | f6f78318fca803c4907fb8d7f6ded8295f1947b1 (patch) | |
tree | 9cf054e87f1dbdcc39778a7696501e076c422f40 /ld/ldlex.l | |
parent | 22e90ac5af46c01ee4972cf04e835266862bbb35 (diff) | |
download | binutils-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.l | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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('{'); } |