pluick
pluick
From what I read about extras, is that they live outside of the grammar. So anything classified under extras would not appear in the parsed tree. Implementing the preproc as...
Now I'm taking a second look, the extras field is how comments are handled in the parser, so it might work to add the preprocessor there.
I did some more testing and changing to token immediate seems to handle the issue and pass all the tests: --- a/grammar.js +++ b/grammar.js @@ -113,7 +115,8 @@ module.exports =...
I've come up with 2 possible solutions. The original solution I posted above still fixes my issue, and I couldn't find any regressions with it: `preproc_arg: $ => token.immediate(prec(-1, repeat1(/[^\n]|\\\r?\n/))),`...