rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments
https://rouge.jneen.net/
Other
3.3k stars 732 forks source link

toml: support all date formats #2033

Closed arp242 closed 3 months ago

arp242 commented 3 months ago

TOML supports several different date formats:

2006-01-02T18:19:20Z         # UTC
2006-01-02T18:19:20+01:00    # Timezone
2006-01-02 18:19:20+01:00    # Can use space instead of "T"

2006-01-02 18:19:20          # Local date-time without timezone
2006-01-02                   # Local date
18:19:20                     # Local time
tancnle commented 3 months ago

Thanks @arp242. LGTM 🚀