Ticket #4059 (new defect)

Opened 4 years ago

Last modified 2 years ago

YAML syntax highlight is broken on multiline blocks

Reported by: onlyjob Owned by:
Priority: minor Milestone: Future Releases
Component: mcedit Version: 4.8.24
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:


As reported in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950307

In the newest version of mcedit syntax highlight for YAML
inline block highlight is started after '>' or '|' directives, but does not end
until EOF.

Instead it should end after encountering any of:

  • an empty line
  • a line with the same indent as the key of current value
  • a line with less indent than the first line of inline block


2022-07-05-204012_3360x1080_scrot.png (35.2 KB) - added by kran0 2 years ago.
github pull 170 example

Change History

comment:1 Changed 4 years ago by and

introduces by #4010

end of block highlighting will only stop by newline with beginning minus

Changed 2 years ago by kran0

github pull 170 example

comment:2 Changed 2 years ago by kran0

Please watch PR from https://github.com/MidnightCommander/mc/pull/170

It does not fixes the bug, bui i think it makes the problem moderate

Please watch attached image with the result: https://midnight-commander.org/attachment/ticket/4059/2022-07-05-204012_3360x1080_scrot.png

Note: See TracTickets for help on using tickets.