Ticket #4010 (closed enhancement: fixed)

Opened 3 weeks ago

Last modified 2 weeks ago

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

mc-yaml-embedded-blocks-001.patch (374 bytes) - added by jetpilot 3 weeks ago.
patch against current git state of the syntax file in question

Change History

comment:2 Changed 3 weeks ago by andrew_b

The best way is patch created using git format-patch.

Changed 3 weeks ago by jetpilot

patch against current git state of the syntax file in question

comment:3 Changed 2 weeks 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 2 weeks 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

comment:5 Changed 2 weeks ago by andrew_b

  • Status changed from testing to closed
Note: See TracTickets for help on using tickets.