You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Highlight YAML document markers (--- / ...) as document structure
`---` and `...` were painted as plain scalars (string.unquoted): the DocStart/DocEnd
tokens existed but the plain-scalar catch-all (rank 8.8) out-ranked them, and they
carried a punctuation scope rather than the document scope. Now they:
- require trailing whitespace/EOL so `---foo` / `...bar` stay plain scalars,
- scope as entity.other.document.begin / .end (the maintained-grammar convention),
- out-rank the plain scalar in scopeOrder so the marker wins the `---`/`...` match.
Also fixes the identToken fallback that mis-tagged `---` as the bare identifier (it
classified as variable.other and got `.readwrite` appended to its scope): the
fallback now requires the token's RESOLVED scope to be variable.other, so an
explicitly scoped token can never be mistaken for the identifier. And the Monarch /
tree-sitter generators learn the new entity.other.document scope (delimiter /
@punctuation.delimiter) so all three targets keep painting the markers.
YAML scope-gap doc.marker 0/149 -> 149/149; parser unchanged (the lookahead only
narrows where the marker matches). Other six grammars byte-identical.
Refs #12
0 commit comments