Ticket #4054 (new defect) — at Initial Version

Opened 5 years ago

Last modified 4 years ago

syntax highlighting for shell is broken since 4.8.24 -rc1

Reported by: wwp Owned by:
Priority: major Milestone: 4.8.25
Component: mcedit Version: master
Keywords: syntaxt highlighting shell mcedit Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

since 4.8.24-rc1 (4.8.23-149-g06bf088bc), the syntax highlighting of shell scripts in mcedit misbehaves around matches of "function blabla()" inside literal quotes. It applies syntax highlighting as if it was function definition in normal conditions (out of literal quotes), breaking the colouring of whatever follows.

The following sample shows the issue:
#!/bin/sh

function foo()
{

echo "normal color highlighting"
echo "function bar() abnormal color highlighting"

}

Note: See TracTickets for help on using tickets.