Commit 7fbf4d2
authored
[v2] Fix multiline natspec comment lexing (#1470)
Fixes #1469
Goes from matching multiline NatSpec comments with
`r#"/\*\*[^\*]*\*+([^/\*][^\*]*\*+)*/"#` to
`r#"/\*\*([^/\*][^\*]*)?\*+([^/\*][^\*]*\*+)*/"#`.
The main difference is that immediately after the `/**` a character
different than `/` is expected.
A [sourcify run over all the
chains](https://github.com/NomicFoundation/slang/actions/runs/19328166314)
shows a few errors, but I think these are different. Still, a lot less
failing contracts than before.1 parent a005493 commit 7fbf4d2
File tree
3 files changed
+7
-10
lines changed- crates/solidity-v2
- inputs/language/src
- outputs/cargo/parser/src/lexer
- tests
3 files changed
+7
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| |||
Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
41 | 38 | | |
42 | 39 | | |
43 | 40 | | |
| |||
0 commit comments