Commit fa50f82
committed
Resolve remaining YAML #12 items: portable num/boolnull + explicit-key indicator
#2 (num/boolnull incompatible with TextMate 2.0 / GitHub-Linguist): the typed-scalar
rules carried a negative-lookbehind guard (16 stacked fixed-width `(?<!![ \t]{n})`)
to keep a `!␣`-tagged value a string. Negative lookbehind isn't portable to those
engines, so the guard is removed — a `!␣`-tagged core value now types BY APPEARANCE,
exactly as the official grammar does (`! true` → constant.language.boolean there too).
The scope-gap metric is unchanged (the case isn't in the gradable corpus) and the
parser stays 100% aligned; num/boolnull are now lookbehind-free.
#6 (explicit multiline sequence map key): a `?` indicator alone on its line (key on the
following lines) was scoped as a generic punctuation bracket. Emit an
explicit-key-indicator rule scoping the bare `?` as punctuation.definition.map.key
(matching the same-line `? key` form and the official grammar), ranked ahead of the
generic `?` token. The key's collection items already carry the correct string role.
Other six grammars byte-identical.
Refs #121 parent 90c4123 commit fa50f82
3 files changed
Lines changed: 39 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4700 | 4700 | | |
4701 | 4701 | | |
4702 | 4702 | | |
| 4703 | + | |
| 4704 | + | |
| 4705 | + | |
| 4706 | + | |
| 4707 | + | |
| 4708 | + | |
| 4709 | + | |
| 4710 | + | |
| 4711 | + | |
| 4712 | + | |
| 4713 | + | |
4703 | 4714 | | |
4704 | 4715 | | |
4705 | 4716 | | |
| |||
7164 | 7175 | | |
7165 | 7176 | | |
7166 | 7177 | | |
| 7178 | + | |
| 7179 | + | |
| 7180 | + | |
7167 | 7181 | | |
7168 | 7182 | | |
7169 | 7183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
227 | 230 | | |
228 | 231 | | |
229 | 232 | | |
230 | | - | |
| 233 | + | |
231 | 234 | | |
232 | 235 | | |
233 | 236 | | |
234 | | - | |
| 237 | + | |
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
| |||
266 | 269 | | |
267 | 270 | | |
268 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
269 | 280 | | |
270 | 281 | | |
271 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
180 | 175 | | |
181 | 176 | | |
182 | 177 | | |
183 | 178 | | |
184 | | - | |
| 179 | + | |
185 | 180 | | |
186 | 181 | | |
187 | 182 | | |
188 | 183 | | |
189 | 184 | | |
190 | | - | |
| 185 | + | |
191 | 186 | | |
192 | 187 | | |
193 | 188 | | |
| |||
199 | 194 | | |
200 | 195 | | |
201 | 196 | | |
202 | | - | |
203 | | - | |
204 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
205 | 200 | | |
206 | 201 | | |
207 | 202 | | |
| |||
0 commit comments