Summary: | Bash parser does not recognize two parenthesis not closed together | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Luiz Angelo De Luca <luizluca> |
Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | wishlist | CC: | andresbajotierra, christoph, slong |
Priority: | NOR | ||
Version: | 2.5 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Luiz Angelo De Luca
2007-01-23 21:49:43 UTC
I can confirm this, but syntax highlighting is done by kate. Reassigning. This is tricky with the current .xml file as it assumes (( is arithmetic expansion. The kludge is to put a space in whenever you don't mean that. A more complete solution would require some sort of backtracking on encountering a ). (Really reassing to the Kate guys.) Still valid here using: Qt: 4.4.3 + qt-copy-patches-889120 KDE: 4.1.87 (KDE 4.1.87 (KDE 4.2 >= 20090101)) kdelibs svn rev. 905636 / kdebase svn rev. 905636 kdesdk svn rev. 905676 on ArchLinux x86_64 - Kernel 2.6.27.10 Can this be related to bug 140514 ? This bug is still present in kde 4.3. function aaa { (( echo 123 ) | echo 1 ) } function bbb { (( echo 123 ) | echo 1 ) } test Yes Dario, this might be related but, to make it sure, I think it's better to let this in different bug reports until it is fixed. 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. Still present in kde 4.8 Bash do some nasty parsing in order to differ (( )) from (( ) ). This is not treated by its defined grammar. I guess kate parsing process need to be improved in order to allow a viable way to interpret this code (https://bugs.kde.org/show_bug.cgi?id=140514#c7) Dear user, this wish list item is now closed, as it wasn't touched in the last two years and no contributor stepped up to implement it. The Kate/KTextEditor team is very small and we can just try to keep up with fixing bugs. Therefore wishs that show no activity for two years or more will be closed from now on to keep at least a bit overview about 'current' wishs of the users. If you want your feature to be implemented, please step up to provide some patch for it. If you think it is really needed, you can reopen your request, but keep in mind, if no new good arguments are made and no people get attracted to help out to implement it, it will expire in two years again. We have a nice website kate-editor.org that provides all the information needed to contribute, please make use of it. For highlighting improvements our user manual shows how to write syntax definition files. Greetings Christoph |