Translate off not working as intended
Summary
The translate off/on
pragma is not working as intended
Describe your setup
fastrich
TMRG Version
REPRODUCED_111
Steps to reproduce
Testcase for #116 with translate off/on around problematic code
`define AURORA_BLOCK_CODE_BITS 8
`define AURORA_NFC_BLOCK `AURORA_BLOCK_CODE_BITS'haa
`define AURORA_UFC_BLOCK `AURORA_BLOCK_CODE_BITS'h2d
// tmrg translate off
`define AURORA_UK_BLOCKS { \
`AURORA_BLOCK_CODE_BITS'h87, \
`AURORA_BLOCK_CODE_BITS'h4b, \
`AURORA_BLOCK_CODE_BITS'h33, \
`AURORA_BLOCK_CODE_BITS'h66, \
`AURORA_BLOCK_CODE_BITS'hcc, \
`AURORA_BLOCK_CODE_BITS'hb4, \
`AURORA_BLOCK_CODE_BITS'h55, \
`AURORA_BLOCK_CODE_BITS'h99, \
`AURORA_BLOCK_CODE_BITS'hd2 \
}
// tmrg translate on
module test;
endmodule
What is the current bug behavior?
The pragma is translated into a different character ¤
which results into the impossibility to re-enable translate functionality
$ tmrg test.sv
[ERROR ] Error in file 'test.sv' around line '6'.
[ERROR ]
[ERROR ] ¤tmrg translate on;
[ERROR ] ^
[ERROR ] Expected end of text, found '¤' (at char 198), (line:6, col:1)
[ERROR ] Error during parsing
What is the expected correct behavior?
Code should be ignored
Possible fixes
To be investigated. Potentially can help addressing #114 as well.