jskinner / DefaultPackages

Old bug tracker for Sublime Text's "Default Packages", e.g. bad syntax highlighting
http://web.archive.org/web/20150524043750/https://www.sublimetext.com/forum/viewtopic.php?f=2&t=12095
26 stars 2 forks source link

MultiMarkdown: meta data not properly highlighted when space in key #162

Closed Hibou57 closed 7 years ago

Hibou57 commented 8 years ago

The documentation for MultiMarkdown states a key name in the meta‑data section, may contains spaces:

http://fletcher.github.io/peg-multimarkdown/index

The metadata key must begin at the beginning of the line. It must start with a letter or number, then the following characters can consist of letters, numbers, spaces, hyphens, or underscore characters.

The current colorization does not handle key names containing space, hyphen or underscore.

Ex. This will not be properly highlighted (and HTML Header is a standard MultiMarkdown meta‑data key):

HTML Header: <style>
             body { width:100ex; margin:auto; text-align:justify; }
             /* Some more style. */
             </style>