Ticket #4059 (new defect)

Opened 2 years ago

Last modified 4 hours 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:

Description

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

Attachments

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

Change History

comment:1 Changed 19 months ago by and

introduces by #4010

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

Changed 4 hours ago by kran0

github pull 170 example

comment:2 Changed 4 hours 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.