enhancement: improve YAML syntax highlighting
Author: nos1dot618Created Aug 29, 2026Updated Aug 29, 2026
The current YAML highlighting is missing a few common YAML constructs. Examples from the YAML 1.2.2 specification:
Special numbers:
.inf,-.inf,.nanpositive_inf: .inf negative_inf: -.inf not_a_number: .nanHex, octal, and binary numbers
hexadecimal: 0xC octal: 0o14 binary: 0b1010Single-quoted strings and escaped quotes
single: 'Hello, world!' escaped: 'It''s YAML'See YAML 1.2.2 §7.3.2.
Explicit tags
string: !!str 123 integer: !!int "42"See YAML 1.2.2 §6.9.1.
There are other YAML constructs as well, such as empty values, flow collections, anchors and aliases, and the document end marker. However, I don't think these necessarily need special highlighting support.
Source: microsoft/edit