[v2] Fix multiline natspec comment lexing#1470
Conversation
|
|
Just as a note, while thinking on ways to solve this one option was to use a different mode for parsing multiline NatSpec comments. I don't think it's worth it for now, but it could be interested for our parser to give NatSpec comments a structure. |
aa3885a to
5343164
Compare
|
After some experimenting with Remix, it seems a comment with 3 asterisks ( I think it's enough to remove the |
Fixes #1469
Goes from matching multiline NatSpec comments with
r#"/\*\*[^\*]*\*+([^/\*][^\*]*\*+)*/"#tor#"/\*\*([^/\*][^\*]*)?\*+([^/\*][^\*]*\*+)*/"#.The main difference is that immediately after the
/**a character different than/is expected.A sourcify run over all the chains shows a few errors, but I think these are different. Still, a lot less failing contracts than before.