Commit 79a70d6
committed
PHPCSDebug/TokenList: visualize whitespace characters (take two)
Follow up after PR 102.
Comment tokens, most notably `T_COMMENT` and `T_DOC_COMMENT_STRING` will have the new line character following it included in the token content.
This implies that potential _trailing whitespace_ (between the text and the new line character) will also be included in the token content.
In a similar vein as for _plain_ whitespace, this trailing whitespace should be visualized.
On top of that, for multi-line `/* */`-style comments, _leading_ whitespace will also be included in the token, so should also be visualized.
Again, this is primarily a change to improve usability, but it will also make testing this sniff easier as we no longer have to deal with trailing whitespace issues.1 parent e0d7fe2 commit 79a70d6
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
119 | 131 | | |
120 | 132 | | |
121 | 133 | | |
| |||
0 commit comments