Ticket #4010 (closed enhancement: fixed)
add inlined data block highlighting for YAML syntax highlighting
Reported by: | jetpilot | Owned by: | andrew_b |
---|---|---|---|
Priority: | major | Milestone: | 4.8.24 |
Component: | mcedit | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | merged | Votes for changeset: | committed-master |
Description
using certain character seqeunces YAML allows embedding texts and binary data of totally different nature (incluing e.g. HTML). the termination is the next valid block. (as the syntax highlighter of MC has a few limitations this highlighting as proposed below might miss some rare constructs or might select text that is not perfectly conforming with YAML rules. still its already lots better than the current state.)
i am proposing to add these lines to the end of the YAML syntax file:
context exclusive |\[123456789\+\-\s\t\]\n \n- brown
context exclusive >\[123456789\+\-\s\t\]\n \n- brown
Attachments
Change History
Changed 5 years ago by jetpilot
- Attachment mc-yaml-embedded-blocks-001.patch added
patch against current git state of the syntax file in question
comment:3 Changed 5 years ago by andrew_b
- Status changed from new to accepted
- Owner set to andrew_b
- Milestone changed from Future Releases to 4.8.24
comment:4 Changed 5 years ago by andrew_b
- Status changed from accepted to testing
- Votes for changeset set to committed-master
- Resolution set to fixed
- Branch state changed from no branch to merged
Thanks!
Applied as [19cc61cf044b4426f2f08b76a856ac0e358037f3].
https://github.com/MidnightCommander/mc/blob/master/misc/syntax/yaml.syntax