Summary: | Syntaxic coloration error in "switch" statement | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | patrick serru <patrick> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 2.4.1 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
patrick serru
2006-02-03 16:05:44 UTC
This bug can be closed in my opinion because there is simply a missing space between the case keyword and '-'... Unfortunately, "case'-':" is still valid C code. Proposed patch: ==== c.xml <comment name="multiLine" start="/*" end="*/" /> </comments> - <keywords casesensitive="1" /> + <keywords casesensitive="1" additionalDeliminator="'"" /> </general> </language> Patch looks correct, as the standard delimiters are: \t.():!+,-<=>%&*/;?[]^{|}~\\ and space char. " and ' are not included. It can be committed imo, I believe it doesn't break other places. SVN commit 562193 by kling: Fixed highlighting of "case'-':", which is ugly but allowed. Thanks to Matthew Woehlke for the fix. BUG: 121293 M +1 -1 c.xml --- branches/KDE/3.5/kdelibs/kate/data/c.xml #562192:562193 @@ -153,6 +153,6 @@ <comment name="singleLine" start="//" /> <comment name="multiLine" start="/*" end="*/" /> </comments> - <keywords casesensitive="1" /> + <keywords casesensitive="1" additionalDeliminator="'"" /> </general> </language> |