https://bugs.kde.org/show_bug.cgi?id=463797
Bug ID: 463797 Summary: Keyword list items w/ context Classification: Frameworks and Libraries Product: frameworks-syntax-highlighting Version: unspecified Platform: unspecified OS: All Status: REPORTED Severity: normal Priority: NOR Component: framework Assignee: kwrite-bugs-n...@kde.org Reporter: i.za...@gmail.com Target Milestone: --- Doing a new syntax file, I again hit the pattern when I need per keyword context switch. E.g. smth like this: ```xml <highlighting> <list name="commands"> <item>satu</item> <item context="dua_ctx">dua</item> <item>tiga</item> <item context="empat_ctx">empat</item> </list> <contexts> <context attribute="Normal Text" lineEndContext="#stay" name="Normal Text"> <!-- ... --> <keyword attribute="Command" context="#stay" String="commands"/> <!-- ... --> </context> <context attribute="Command Args" lineEndContext="#stay" name="dua_ctx"> <!-- special case for the `dua` command --> </context> <context attribute="Command Args" lineEndContext="#stay" name="empat_ctp"> <!-- special case for the `empat` command --> </context> <!-- ... --> </contexts> <!-- ... --> ``` I.e., for the keyword list items w/ context attribute, switch to the specified context in case of a match. Otherwise, if not specified per item context, switch to the context specified in the `keyword` rule. It'll be nice if anyone can implement it ;-) -- You are receiving this mail because: You are watching all bug changes.