Repository navigation
Commit b0ca325
committed
Support code blocks without newlines after opening backticks
- [Pasted text]
└── apps
└── editor
└── src
└── commands
└── apply-response-command
└── utils
└── response-parser
└── parsers
└── standard-parser
├── helpers
│ ├── create-or-update-file-item.ts
│ ├── extract-and-set-workspace-path.ts
│ ├── flush-text-block.ts
│ └── process-conflict-markers.ts
├── index.ts
├── standard-parser.ts
└── test
├── cases
│ ├── code-block-without-newlines
│ │ ├── 1-file.txt
│ │ └── code-block-without-newlines.txt
│ ├── conflict-with-inline-file
│ │ ├── 1-file.txt
│ │ ├── 2-conflict-with-inline-file.txt
│ │ └── conflict-with-inline-file.txt
│ ├── delete-file-header
│ │ ├── 1-text.txt
│ │ ├── 2-file.txt
│ │ ├── 3-text.txt
│ │ └── delete-file-header.txt
│ ├── merge-conflicts-file-path-as-bold-text
│ │ ├── 1-file.txt
│ │ └── merge-conflicts-file-path-as-bold-text.txt
│ ├── merge-conflicts-in-separate-code-blocks
│ │ ├── 1-file.txt
│ │ └── merge-conflicts-in-separate-code-blocks.txt
│ ├── merge-conflicts-merge-the-same-file
│ │ ├── 1-text.txt
│ │ ├── 2-file.txt
│ │ └── merge-conflicts-merge-the-same-file.txt
│ ├── merge-conflicts-three-dots
│ │ ├── 1-file.txt
│ │ └── merge-conflicts-three-dots.txt
│ ├── multiple-markdowns-with-headings
│ │ ├── 1-file.txt
│ │ ├── 2-file.txt
│ │ └── multiple-markdowns-with-headings.txt
│ ├── path-above-code-block
│ │ ├── 1-text.txt
│ │ ├── 2-file.txt
│ │ └── path-above-code-block.txt
│ ├── path-above-code-block-bold
│ │ ├── 1-file.txt
│ │ └── path-above-code-block-bold.txt
│ ├── path-above-code-block-raw
│ │ ├── 1-file.txt
│ │ └── path-above-code-block-raw.txt
│ ├── path-above-code-block-renaming
│ │ ├── 1-file.txt
│ │ └── path-above-code-block-renaming.txt
│ ├── path-in-backticks-comment-with-intermediate-text
│ │ ├── 1-text.txt
│ │ ├── 2-file.txt
│ │ └── path-in-backticks-comment-with-intermediate-text.txt
│ ├── path-in-backticks-no-intermediate-empty-lines
│ │ ├── 1-file.txt
│ │ └── path-in-backticks-no-intermediate-empty-lines.txt
│ └── text-below-code-block
│ ├── 1-file.txt
│ ├── 2-text.txt
│ └── text-below-code-block.txt
└── standard-parser.spec.ts1 parent 47de9c4 commit b0ca325
4 files changed
Lines changed: 38 additions & 2 deletions
File tree
- apps/editor/src/commands/apply-response-command/utils/response-parser/parsers/standard-parser
- test
- cases/code-block-without-newlines
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
| |||
91 | 98 | | |
92 | 99 | | |
93 | 100 | | |
94 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
95 | 104 | | |
96 | 105 | | |
97 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
251 | 267 | | |
252 | 268 | | |
253 | 269 | | |
| |||
0 commit comments