atom / language-yaml

YAML package for Atom
Other
24 stars 39 forks source link

> and | type multiline strings break syntax highlighting #33

Closed alexjurkiewicz closed 8 years ago

alexjurkiewicz commented 9 years ago

The following YAML snippet is valid, but syntax highlighting renders incorrectly:

key1:
  - subkey1: |
      content

key number 2:
  cmd.run

Also works with > multiline string type.

Removing spaces from the next string fixes the problem:

key1:
  - subkey1: |
      content

key2:
  cmd.run

Removing the | multiline string indicator works (although this changes the string (no newline at the end)):

key1:
  - subkey1:
      content

key number 2:
  cmd.run
winstliu commented 9 years ago

Going to try to fix all of these YAML bugs this week. /sigh

alexjurkiewicz commented 9 years ago

good luck :open_hands:

alexjurkiewicz commented 8 years ago

Ping. Here's another example:

screen shot 2016-03-02 at 10 27 47 am

(salt syntax is yaml + jinja)

winstliu commented 8 years ago

Yeah, I tried working on this, but didn't manage to make much headway. I'll try again when possible.