react-monacoeditor icon indicating copy to clipboard operation
react-monacoeditor copied to clipboard

YAML multiline code has invalid color highlighting

Open dennisvankekem opened this issue 2 years ago • 0 comments

When using a multiline block (either | or > ) in yaml the highlighting color will often be incorrect. This mainly happens when brackets are involved. Example:

controller:
  config:
    modsecurity-snippet: |
        correct: true
        also-correct: true
        {
            incorrect: true 
            {
                also-incorrect: true
            }
        }

The expected outcome is that everything underneath the | pipe is highlighted as orange as expected with multiline color highlighting, however the outcome seems to be:

image

Is there any chance that you could look into this issue?

Thanks in advance.

dennisvankekem avatar Dec 02 '22 11:12 dennisvankekem