Bug 395515 - lua proramms: breaking long strings by \z results in uglifying following text ( all red and underelined as if a syntax error )
Summary: lua proramms: breaking long strings by \z results in uglifying following text...
Status: RESOLVED FIXED
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (show other bugs)
Version: 5.32.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-16 22:57 UTC by Friedrich Laher
Modified: 2018-07-14 11:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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

Summary:
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

https://commits.kde.org/syntax-highlighting/7d435174e96d45b66cef64def69a1b0261ce112d