aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/interfaces/ecpg/preproc/parse.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/preproc/parse.pl b/src/interfaces/ecpg/preproc/parse.pl
index 9ebe4bd7930..d5798e58ee7 100644
--- a/src/interfaces/ecpg/preproc/parse.pl
+++ b/src/interfaces/ecpg/preproc/parse.pl
@@ -289,11 +289,10 @@ sub main
# Accumulate the line in $str.
$str = $str . ' ' . $a;
- # HACK: insert our own %nonassoc line after IDENT.
- # XXX: this seems pretty wrong, IDENT is not last on its line!
+ # Give our token CSTRING the same precedence as IDENT.
if ($a eq 'IDENT' && $arr[0] eq '%nonassoc')
{
- $str = $str . "\n%nonassoc CSTRING";
+ $str = $str . " CSTRING";
}
}
# Save the lightly-processed line in orig_tokens.