Index: trunk/extensions/VisualEditor/tests/parser/parserTests.js |
— | — | @@ -197,7 +197,7 @@ |
198 | 198 | |
199 | 199 | function printTitle() { |
200 | 200 | console.log('====================================================='); |
201 | | - console.log(item.title); |
| 201 | + console.log('FAILED: ' + item.title); |
202 | 202 | console.log(item.comments.join('\n')); |
203 | 203 | console.log("INPUT:"); |
204 | 204 | console.log(item.input + "\n"); |
Index: trunk/extensions/VisualEditor/modules/parser/pegParser.pegjs.txt |
— | — | @@ -240,11 +240,11 @@ |
241 | 241 | case 5: |
242 | 242 | // order does not matter here, will be fixed |
243 | 243 | // by HTML parser backend |
| 244 | + italics.push(i + inserted); |
| 245 | + out.push({type: 'QUOTE', value: "''"}); |
| 246 | + inserted++; |
244 | 247 | bolds.push(i + inserted); |
245 | 248 | out.push({type: 'QUOTE', value: "'''"}); |
246 | | - inserted++; |
247 | | - italics.push(i + inserted); |
248 | | - out.push({type: 'QUOTE', value: "''"}); |
249 | 249 | break; |
250 | 250 | default: // longer than 5, only use the last 5 ticks |
251 | 251 | token.value = "'''''"; |
— | — | @@ -255,11 +255,11 @@ |
256 | 256 | out.push({type: 'TEXT', value: newvalue}); |
257 | 257 | inserted++; |
258 | 258 | } |
| 259 | + italics.push(i + inserted); |
| 260 | + out.push({type: 'QUOTE', value: "''"}); |
| 261 | + inserted++; |
259 | 262 | bolds.push(i + inserted); |
260 | 263 | out.push({type: 'QUOTE', value: "'''"}); |
261 | | - inserted++; |
262 | | - italics.push(i + inserted); |
263 | | - out.push({type: 'QUOTE', value: "''"}); |
264 | 264 | break; |
265 | 265 | } |
266 | 266 | break; |