atom / language-yaml

YAML package for Atom
Other
24 stars 39 forks source link

Highlighting for Multi-Line Text Containing a Leading '#' #26

Closed twmartin closed 9 years ago

twmartin commented 9 years ago

It seems as though a leading '#' in a line of multi-line text munges the highlighting.

YAML of the form:

example: |
  line 1:
  line 2:  # with a comment
  # line 3
  line 4:

results in the following highlighting:

screen shot 2015-07-27 at 2 29 45 pm
twmartin commented 9 years ago

The tests appear to suggest that this highlighting is behaving as designed. However, per the most current YAML specifications (http://www.yaml.org/spec/1.2/spec.html):

Comments must not appear inside scalars