textmate / yaml.tmbundle

TextMate support for YAML
17 stars 17 forks source link

Incorrect highlighting when { } are used inside YAML literal style #18

Open aeschli opened 8 years ago

aeschli commented 8 years ago

From @ivanz on October 31, 2016 10:43

Having issues with the highlighting of some AWS CloudFormation YAML templates which have some jsons fragments in YAML literal. Seems the { } may be tripping over the highlighting. Note how on the screenshot the highlighting stops working after the Bla: block.

image

Bla:
  - |
  {
    "jsonStuff": {
      "${something}": {
        "bla1":"sdfgsd",
        "bla1":"${asdf}"
        "bla1":"$[asdf]"
      }
    }
  }
this: is
broken: '000600'

Copied from original issue: Microsoft/vscode#14753

aeschli commented 8 years ago
Bla:
  - 
  {
    "jsonStuff": {
      "${something}": {
        "bla1":"sd",
        "bal2":"${asdf}",
        "bla3":"$[asdf]"
      }
    }
  }
this: is,

Seems to work with spaces after the colons

cmeury commented 6 years ago

Just encountered this as well (https://github.com/Microsoft/monaco-editor/issues/786) when editing helmfiles with VSCode.