Commit ead6a3d
committed
Read multi-scope leaves in the Monarch and tree-sitter generators
The prior commit gave YAML number/bool/null plain scalars a space-separated
`string.unquoted constant.*` scope. The TextMate emitter wants the full chain,
but a single Monarch token / tree-sitter capture wants the LEAF (the semantic
type) — both `scopeToMonarch` and `scopeToCapture` matched the `string.` ancestor
first and mis-mapped numbers/booleans to 'string' / @string. Extract the leaf of
a space-separated scope before mapping; regenerate yaml.monarch.json.
Refs #121 parent 547b019 commit ead6a3d
3 files changed
Lines changed: 67 additions & 60 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
886 | 890 | | |
887 | 891 | | |
888 | 892 | | |
| |||
0 commit comments