Summary: | Red underline in kdevelop+kwrite on valid numerical constants (with invalid octal substrings) | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-syntax-highlighting | Reporter: | Cyp <cyp561> |
Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | mail, silverunicorn2011 |
Priority: | NOR | ||
Version: | 5.45.0 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Cyp
2018-04-14 12:14:23 UTC
Indeed. The problem is that it seems the Octal rule matches due to the leading 0, and 9 is not part of the Octal system. Usually, the <Float ...> rule should match earlier, but this does not seem to work properly. Needs further investigation. Git commit db2cbfd50c22da2e0dd633b6ae8f9dfd7babee11 by Dominik Haumann. Committed on 29/05/2018 at 20:56. Pushed by dhaumann into branch 'master'. Add unit test for C++ Octal number misdetection M +2 -0 autotests/folding/highlight.cpp.fold M +3 -1 autotests/html/highlight.cpp.html M +2 -0 autotests/input/highlight.cpp M +3 -1 autotests/reference/highlight.cpp.ref https://commits.kde.org/syntax-highlighting/db2cbfd50c22da2e0dd633b6ae8f9dfd7babee11 *** Bug 388091 has been marked as a duplicate of this bug. *** What also does not work: const float min = -0.5f; This is fixed for KDE Frameworks 5.49. |