| 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: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | nate, pentestian |
| Priority: | NOR | ||
| Version First Reported In: | 5.32.0 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/syntax-highlighting/7d435174e96d45b66cef64def69a1b0261ce112d | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
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 *** Bug 398644 has been marked as a duplicate of this bug. *** |
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.