Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Wrong syntax highlight with multiline strings #109

Open
1 task done
Tracked by #1
hugoboos opened this issue May 17, 2019 · 5 comments
Open
1 task done
Tracked by #1

Wrong syntax highlight with multiline strings #109

hugoboos opened this issue May 17, 2019 · 5 comments

Comments

@hugoboos
Copy link

hugoboos commented May 17, 2019

Prerequisites

Description

Following keys have wrong syntax highlight when the first item has a multiline string.

Steps to Reproduce

Screen Shot 2019-05-17 at 11 49 00

Edit by @rsese to add copy/paste code and a scopes image

list_1:
  - item_a: |
      line 1
      line 2
    item_b: value

list_2:
  - item_b: 
    item_a: |
      line 1
      line 2
    item_c: value

yaml-bug

Versions

Atom    : 1.36.1
Electron: 2.0.18
Chrome  : 61.0.3163.100
Node    : 8.9.3
apm  2.1.3
npm  6.2.0
node 8.9.3 x64
atom 1.36.1
python 2.7.10
git 2.21.0
@rsese
Copy link

rsese commented May 17, 2019

Thanks for the report! Reproduced with 1.39.0-nightly5 on macOS 10.12.6:

yaml-bug

@hugoboos
Copy link
Author

@rsese I was wondering what do the 'd', 'i' and 'v' labels mean? Just being curious.

@rsese
Copy link

rsese commented May 28, 2019

Hey @hugoboos 👋 They're rough estimates of difficulty, impact, and visibility of the issue - this helps us think about prioritization given the team's finite resources.

@jniac
Copy link

jniac commented Jun 18, 2020

Workaround:
do not declare the first key right after the dash :

@ElvenSpellmaker
Copy link

Hey @rsese, Hey, I just stumbled across this issue because Github uses this downstream, but also wondered what d, i, and v were.
An idea would be to rename them to their full meanings so everyone knows what they mean? They're currently quite cryptic! 🙂

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants