Bug 172473 - bash-syntax highlighting: problem with squared brackets-syntax of `test' and equal-signe inside backticks
Summary: bash-syntax highlighting: problem with squared brackets-syntax of `test' and ...
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: syntax (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-09 19:37 UTC by Tom
Modified: 2012-10-26 12:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom 2008-10-09 19:37:22 UTC
Version:           2.5.10 (using KDE 3.5.10)
OS:                Linux
Installed from:    SuSE RPMs

To reproduce:
open a new file in Kate, type the following line:

[ `g.gisenv get=MAPSET` = testmaps ]

What happens in my case is that the closing squared bracket is not recognized as such. The problem seems to be the equal sign between the backticks because those two lines are recognized correctly (though the first one does not make much sense beyond syntax):

[ `ls .` = something ]
`g.gisenv get=MAPSET`

(This is really a minor bug because just using the ordinary `test'-syntax does the job too, but nevertheless syntax-highlighting in this case is not as supportive as it could be.)

Tom
Comment 1 Christoph Cullmann 2010-02-20 16:36:02 UTC
Moving to wish list status. All highlightings works with heuristics and will
never be perfect. Perhaps somebody can provide a patch, therefor not closing
it.
Comment 2 Christoph Cullmann 2012-10-26 12:44:58 UTC
All highlightings are just heuristics, they can't cover all corner cases and often lack latest language features.

If you provide some patch to fix your issue, we will take care of it, otherwise, it won't be fixed as the xml files are not that "actively" maintained beside by users fixing such issues themself.

See the highlighting docs on kate-editor.org on how to improve our existing files.

As we have >> 200 highlightings around, we can't do this ourself, sorry.
Please provide a patch and reopen the bug then (or dump the patch to kwrite-devel@kde.org).