Repository navigation
Commit 7a0224c
committed
Escape
`escape_name` maps `"` to `dquote` but leaves `'` untouched, so a grammar whose
node types contain a single quote generates an invalid dbscheme identifier.
Lua hits this: its `string` node has `'` as a delimiter token, and the generator
emits `@lua_string_'`, which the dbscheme parser rejects with
ERROR: token recognition error at: '''
No shipped language contains a bare `'` in a node type, which is why this has
not surfaced before. Found while building an out-of-tree extractor.
Adds the missing mapping and a test covering both string delimiters.' in generated dbscheme names1 parent a281f7c commit 7a0224c
1 file changed
Lines changed: 9 additions & 0 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| 389 | + | |
389 | 390 | | |
390 | 391 | | |
391 | 392 | | |
| |||
448 | 449 | | |
449 | 450 | | |
450 | 451 | | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
451 | 460 | | |
452 | 461 | | |
453 | 462 | | |
| |||
0 commit comments