Extracts only a real annotation argument
All 8 scenarios hold
The formatter leaves alone text that merely looks like an annotated table. It would otherwise rewrite the example in a comment, or the fixture a test feeds to a tool.
The last row holds the same table written for real. The rule is about where the text sits, and not about how the author writes it.
expected outcome
broken scenario
| Scenario | Source lines | Table forms? |
|---|---|---|
| Inside a line comment |
| [] |
| Inside a block comment |
| [] |
| String array inside a comment |
| [] |
| Inside a plain string literal |
| [] |
| Inside a text-block fixture |
| [] |
| On a different annotation |
| [] |
| Unterminated text block |
| [] |
| The same table, for real |
|
|