[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Generic code completion for kate
From:       Sven Brauch <svenbrauch () googlemail ! com>
Date:       2014-01-31 22:56:35
Message-ID: 15302729.Sny10cnkPb () localhost ! localdomain
[Download RAW message or body]

Hi!

I have had this plan for ages, but I never got around to trying it. The idea 
is that the highlighting XML files basically know a context, and a list of 
keywords which make sense in that context. E.g. for, say, GAP they have all 
the functions listed for highlighting purposes. It would be awesome if that 
information could also be shown in the completion list, right?

First question is of course, do you think the idea is even worth it? ;)

Assuming we would want to implement it, the main problem seems to be getting 
the highlighting Context at a given cursor position. This information is not 
stored by the highlighting engine at all. Which is why I'm writing this.

To get that information, in addition to the context stack, in the TextLine 
we'd also need to store where context switches occur. That'd be 8 bytes per 
context switch (four for the location, and four for the context number).

Do you think that is feasible / worth it? Is there a better way to do this?

Greetings,
Sven
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic