atom / language-yaml

YAML package for Atom
Other
24 stars 39 forks source link

Syntax highlighting after |- #84

Closed LydiaF closed 7 years ago

LydiaF commented 7 years ago

Prerequisites

Description

Syntax highlighting is not working well after |- in YAML:

  1. multi-line with colon is interpreted as a key
  2. adding a colon at the end of the line with a markdown # at the beginning of the line is interpreted as a comment
  3. cannot comment on the same line as

Steps to Reproduce

  1. Ensure YAML formatting
  2. Try this:
    key: |-
    Lorem ipsum
    key: |-
    Lorem ipsum:
    test: |-
    # Lorem ipsum
    test: |- 
    # Lorem ipsum:
    test: |- #comment
    Lorem ipsum

    Expected behavior: image

Actual behavior:

image

Reproduces how often: all the time

Versions

Atom : 1.16.0 Electron: 1.3.13 Chrome: 52.0.2743.83 Node: 6.5.0 apm: 1.16.1 npm: 3.10.5 node: 6.9.5 x64 python: 2.7.10 git: 2.6.1

miloprice commented 7 years ago

I ran into this with just |-denoted blocks as well.