Bug 442181

Summary: Line change of GNUplot files cannot be highlighted properly in Kate
Product: [Frameworks and Libraries] frameworks-syntax-highlighting Reporter: shenlebantongying <shenlebantongying>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph, shenlebantongying, walter.von.entferndt
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Comprasion with another editor

Description shenlebantongying 2021-09-08 15:14:03 UTC
Created attachment 141397 [details]
Comprasion with another editor

SUMMARY

Kate cannot properly handle line-change for GNUplot files.

STEPS TO REPRODUCE
For example, use the code below and name the file as ***.gnuplot

```
set terminal pdf
plot "data-simple" using 1:2 with lines, \
     "data-simple" using 1:3 with linespoints
```

The last line cannot be properly highlighted.


EXPECTED RESULT

The attachment is a comparison, left is Kate, right side is another editor which can handle line change properly.

SOFTWARE/OS VERSIONS
All software are on the newest version of archlinux.
Comment 1 Bug Janitor Service 2021-12-19 17:28:00 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/284
Comment 2 Jonathan Poelen 2021-12-19 17:55:34 UTC
Git commit 79e30ff3dddc0c05495b1ff44f8476ef8d3d3eb0 by Jonathan Poelen.
Committed on 19/12/2021 at 17:27.
Pushed by cullmann into branch 'master'.

GnuPlot: fix a lot of issue

A  +107  -0    autotests/folding/test.gp.fold
A  +114  -0    autotests/html/test.gp.dark.html
A  +114  -0    autotests/html/test.gp.html
A  +107  -0    autotests/input/test.gp
A  +107  -0    autotests/reference/test.gp.ref
M  +10   -1    data/syntax/bash.xml
M  +735  -474  data/syntax/gnuplot.xml

https://invent.kde.org/frameworks/syntax-highlighting/commit/79e30ff3dddc0c05495b1ff44f8476ef8d3d3eb0