#915064 geany: syntax highlighting broken for Perl here-documents with ~ modifier

Package:
geany
Source:
geany
Description:
fast and lightweight IDE
Submitter:
Celejar
Date:
2018-12-03 04:15:04 UTC
Severity:
normal
#915064#5
Date:
2018-11-30 00:21:02 UTC
From:
To:
Dear Maintainer,

Syntax highlighting is broken for Perl here-documents with ~ modifier.
The parser apparently doesn't understand that the whitespace-prefixed delimiter
ends the quoted text, and continues to highlight the following text as
quoted.

For example, with the attached file, Geany continues to highlight the
keywords 'my', 'print', and 'exit', as well as the closing brace, in green,
as quoted text, despite the fact that the Perl interpreter correctly
interprets and runs the code.

#915064#10
Date:
2018-12-03 04:10:58 UTC
From:
To:
I realized that the problem stems from the fact that the ~ modifier to
here documents is apparently relatively new to Perl. While the example
code I provided runs fine on 5.28.1, it fails on 5.24.2 (the version in
Stable). I suppose Scintilla syntax highlighting is lagging behind Perl
development.