Commit 10ea73c
committed
WIP : Fix for reformatting issue with unnamed vars GH9255
Update JavaLexer to generate correct token type for `var _`.
Add lexer and formatting tests.1 parent f02cbe4 commit 10ea73c
3 files changed
Lines changed: 68 additions & 7 deletions
File tree
- java
- java.lexer
- src/org/netbeans/lib/java/lexer
- test/unit/src/org/netbeans/lib/java/lexer
- java.source.base/test/unit/src/org/netbeans/modules/java/source/save
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1196 | 1196 | | |
1197 | 1197 | | |
1198 | 1198 | | |
1199 | | - | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
1200 | 1202 | | |
1201 | 1203 | | |
1202 | 1204 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
563 | 580 | | |
564 | 581 | | |
565 | 582 | | |
| |||
Lines changed: 48 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6274 | 6274 | | |
6275 | 6275 | | |
6276 | 6276 | | |
| 6277 | + | |
6277 | 6278 | | |
6278 | 6279 | | |
6279 | 6280 | | |
6280 | 6281 | | |
6281 | 6282 | | |
6282 | | - | |
6283 | | - | |
6284 | 6283 | | |
6285 | 6284 | | |
6286 | 6285 | | |
| |||
6299 | 6298 | | |
6300 | 6299 | | |
6301 | 6300 | | |
6302 | | - | |
6303 | 6301 | | |
6304 | 6302 | | |
6305 | 6303 | | |
| 6304 | + | |
6306 | 6305 | | |
6307 | 6306 | | |
6308 | 6307 | | |
6309 | 6308 | | |
6310 | 6309 | | |
6311 | | - | |
6312 | | - | |
6313 | 6310 | | |
6314 | 6311 | | |
6315 | 6312 | | |
| |||
6328 | 6325 | | |
6329 | 6326 | | |
6330 | 6327 | | |
6331 | | - | |
| 6328 | + | |
| 6329 | + | |
| 6330 | + | |
| 6331 | + | |
| 6332 | + | |
| 6333 | + | |
| 6334 | + | |
| 6335 | + | |
| 6336 | + | |
| 6337 | + | |
| 6338 | + | |
| 6339 | + | |
| 6340 | + | |
| 6341 | + | |
| 6342 | + | |
| 6343 | + | |
| 6344 | + | |
| 6345 | + | |
| 6346 | + | |
| 6347 | + | |
| 6348 | + | |
| 6349 | + | |
| 6350 | + | |
| 6351 | + | |
| 6352 | + | |
| 6353 | + | |
| 6354 | + | |
| 6355 | + | |
| 6356 | + | |
| 6357 | + | |
| 6358 | + | |
| 6359 | + | |
| 6360 | + | |
| 6361 | + | |
| 6362 | + | |
| 6363 | + | |
| 6364 | + | |
| 6365 | + | |
| 6366 | + | |
| 6367 | + | |
| 6368 | + | |
| 6369 | + | |
| 6370 | + | |
| 6371 | + | |
| 6372 | + | |
| 6373 | + | |
6332 | 6374 | | |
6333 | 6375 | | |
6334 | 6376 | | |
| |||
0 commit comments