Commit fcbae1c
authored
Fix Docker line continuation with CRLF line endings (#7309)
LINE_CONTINUATION only consumed one newline character, so with \r\n
endings it consumed \r and left \n as a standalone NEWLINE token that
reset internal lexer state. Change both LINE_CONTINUATION and
HP_LINE_CONTINUATION to explicitly match the optional \r before \n.1 parent 9ed831d commit fcbae1c
4 files changed
Lines changed: 448 additions & 429 deletions
File tree
- rewrite-docker/src
- main
- antlr
- java/org/openrewrite/docker/internal/grammar
- test/java/org/openrewrite/docker/tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
0 commit comments