https://bugs.kde.org/show_bug.cgi?id=134781

--- Comment #6 from Thomas Friedrichsmeier 
<thomas.friedrichsme...@ruhr-uni-bochum.de> ---
Hi!

This is still a wanna-have to me, although there really are at least two
routes, for what I am trying to accomplish. The situation is this: The "static"
kate syntax highlighting works beautifully for my language. It is smart enough
to differentiate the different contexts, reliably, even though that is not
entirely trivial. Essentially I would like to re-use all that existing
cleverness, and add some bits that cannot be defined statically. Importantly,
of course, these bits to add are _not_ independent, but they do depend on the
syntactical context, i.e. on exactly the rules that the "static" highlighter
knows, already.

The alternative route, then would leave the static highlighting static, _but_ I
would need a way to 
1) extract the (name of the) active context at a given cursor position
1b) preferably also extract information on the encapsulating context(s), and on
where the context starts, and where it ends; this part is not terribly
important, though
2) receive notification whenever the context has changed in an area (a visible
area) of the document (and I should update my custom/dynamic highlighting).

Does that make sense and sounds less out-of-scope?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to