Bug 395515

Summary: lua proramms: breaking long strings by \z results in uglifying following text ( all red and underelined as if a syntax error )
Product: [Frameworks and Libraries] frameworks-syntax-highlighting Reporter: Friedrich Laher <mathefritz>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Severity: normal CC: nate
Priority: NOR    
Version: 5.32.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Friedrich Laher 2018-06-16 22:57:45 UTC
p("solutionNo."..rc1.." :  hit enterkey for \z
                           next") rd()
                               if r4c[7] < 8 then local r = r4c[7]   ...
the code above works as
 intended but the line conaining the \z and following ones are highlighted as errenous . That \z causes the string to continue at the next non-whitespace content.
Comment 1 Dominik Haumann 2018-07-14 11:15:09 UTC
Git commit 7d435174e96d45b66cef64def69a1b0261ce112d by Dominik Haumann, on behalf of Jonathan Poelen.
Committed on 14/07/2018 at 11:15.
Pushed by dhaumann into branch 'master'.

Lua: fix multi-line string

Strings that end with \z or \ can continue to the next line

Reviewers: dhaumann, cullmann, #ktexteditor, #kate

Reviewed By: dhaumann, #ktexteditor, #kate

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D13829

M  +7    -0    autotests/folding/highlight.lua.fold
M  +7    -0    autotests/html/highlight.lua.html
M  +7    -0    autotests/input/highlight.lua
M  +7    -0    autotests/reference/highlight.lua.ref
M  +10   -3    data/syntax/lua.xml