| Summary: | awk highlighting /x/ issue | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Roberto <r087r70> |
| Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | r087r70 |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 4.7.1 | |
| Sentry Crash Report: | |||
Can you please have a look into the file kde4/share/apps/katepart/syntax/awk.xml somewhere in your system (maybe /usr/share/ or so) and provide a fix for that? We need someone with awk knowledge to fix this... Anyone? Hi, the problem relies in the line: <RegExpr String="/([^\/[]|\\.|\[\]?(\[[^]]+\]|.)+\])+/" attribute="Pattern" context="#stay" /> by commenting out this line the issue is solved but no /x/ patterns are highlighted. IMO this is better than having a completely screwed highlighting through all the text. I propose to remove or comment out the line as default in the next releases. It is not possible with a regexp to distinguish a pattern /x/ from a math operation, a/b/c, or from a path, /dev/stderr. Yes, in my opinion, this is indeed a good compromise. Will change it this way. Git commit 4a54effbb4bc256b8ead8b62c0339a0977c8bc75 by Dominik Haumann. Committed on 11/08/2011 at 15:10. Pushed by dhaumann into branch 'master'. fix awk patatern highlighting BUG: 279799 M +1 -2 part/syntax/data/awk.xml http://commits.kde.org/kate/4a54effbb4bc256b8ead8b62c0339a0977c8bc75 Git commit 3841d330ca149a8cfc9c2588beeaaba743b653a4 by Dominik Haumann. Committed on 11/08/2011 at 15:10. Pushed by dhaumann into branch 'KDE/4.7'. fix awk patatern highlighting BUG: 279799 M +1 -2 part/syntax/data/awk.xml http://commits.kde.org/kate/3841d330ca149a8cfc9c2588beeaaba743b653a4 |
Version: unspecified (using KDE 4.7.0) OS: Linux The highlighting feature for awk scripts misbehave when a pair of slash characters is found across quotes or double quotes. Reproducible: Always Steps to Reproduce: The following example lines make text highlighting misbehave in awk scripts: print a/b/c printf("%g",a/b) >"/dev/stderr" #comment Expected Results: quotes or double quotes should rule against slash pairs