atom / language-yaml

YAML package for Atom
Other
24 stars 39 forks source link

YAML highlighting broken when colon is inside a quoted string. #47

Closed goodevilgenius closed 8 years ago

goodevilgenius commented 8 years ago

For example, the following code:

foo:
    bar: 'ABC: DEF'
    baz: yes
    quux: 0.5

If viewing this yaml file, ABC: is shown as a quoted string, and the remainder of the line as a bare string. After that line, every subsequent key is highlighted as a quoted string.

winstliu commented 8 years ago

I cannot reproduce this using language-yaml@0.26.0; assuming fixed. In addition, Linguist uses language-yaml to highlight YAML code blocks, and your example currently renders fine.

Please make sure you are on the latest version of Atom, currently 1.7.2.