(yaml) add support for dates/timestamps #2475
Labels
bug
good first issue
Should be easier for first time contributors
help welcome
Could use help from community
language
Describe the issue
Highlighting of YAML date/datetime objects is inconsistent.
Some things that are parsed by YAML as dates get highlighted partly as strings, some things that are parsed by YAML as strings get highlighted as dates (or maybe numbers).
Which language seems to have the issue?
yaml
Are you using
highlight
orhighlightAuto
?initHighlightingOnLoad
with a language classname (see codepen below).Sample Code to Reproduce
https://codepen.io/tamlyn/pen/mdJvMYv
Expected behavior
I expect the highlighting to be consistent with YAML's complex datatype parsing. But given the highlighting rules are based on regexes, maybe I expect too much.
The text was updated successfully, but these errors were encountered: