Ticket #101 (closed defect: fixed)
syntax highlighting gone wrong: dor (//) not understood
| Reported by: | jquelin | Owned by: | azawawi |
|---|---|---|---|
| Priority: | major | Milestone: | Satisfy all the requirements of PerlMonks |
| Component: | Syntax Highlighting | Version: | 0.15 |
| Keywords: | syntax highlighting, c, scintilla | Cc: |
Description
the following snippet:
my $foo = $bar ;
say $foo;
colors badly everything after the second slash.
it seems that dor (defined or), introduced in 5.10, is not parsed correctly...
Change History
comment:2 Changed 3 years ago by szabgab
In 0.16 we added an experimental feature using PPI for syntax highlighting. It is slow but it seems to work.
To turn on the experimental features one needs to add
experimental: 1
to the .padre/config.yml
while padre is NOT running.
Then on the new Experimental menu you can change the highlighting mode.
Note: See
TracTickets for help on using
tickets.

That's not good.
According to http://www.scintilla.org/ScintillaHistory.html support for was added in Scintilla 1.76.
I summarized the state of the versions here wxWidgets.
It seems in order to have this supported we either have to integrate Scintilla 1.76 ourself or help the wxWidgets developers and the wxPerl developers or implement our own Perl 5 syntax highlighting.