| Summary: | line continuation + comment = broken C++ preprocessor highlighting | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Matthew Woehlke <mwoehlke.floss> |
| Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | christoph |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Fixed by fixing the similar bug 300009 Works in master now. *** This bug has been marked as a duplicate of bug 300009 *** Thanks! (Heh, I suspected it was an internal katepart bug, after looking at cpp.xml and thinking it was correct ... :-) ) |
The following is not highlighted correctly: // kate: hl c++ #if predicate1 /* this line will be really long */ && \ predicate2 /* with multiple line continuations */ && \ predicate3 /* see? told you so... */ Reproducible: Always Steps to Reproduce: 1. Save above text to a file and open in kwrite/kate/etc. Actual Results: 'predicate3' is highlighted as normal text Expected Results: 'predicate3' is highlighted as preprocessor It appears that comments in preprocessor context after a line continuation are causing katepart to fall out of the preprocessor context. cpp.xml version 1.49