This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Kate auto completion support with extra info per item

Tags: None
(comma "," separated)
Barade
Registered Member
Posts
9
Karma
0
Hey guys,
I love the Kate editor and even use it on Windows.

I have created my own highlighting files for Warcraft III modding: https://github.com/tdauth/syntaxhighlig ... /vjass.xml
Warcraft III is a computer game which uses its own scripting language.

First of all, it took me some time to find the Windows directory for custom highlighting files: %USERPROFILE%\AppData\Local\org.kde.syntax-highlighting\syntax\
Maybe they could add some GUI to just import such files?

My actual question is: Can I somehow support function parameters for my highlighted functions even if it is a specific scripting language?

For example, there is a native function in Warcraft like this:
native BlzSetUnitRealField takes unit whichUnit, unitrealfield whichField, real value returns boolean

It has two parameters and returns a boolean value.
Kate does not have to get the syntax/type system but it would be awesome if it would suggest not only the name BlzSetUnitRealField but the two parameters with their types as well.

I know that for real language support you probably have to write some AST parser and get the current context etc. but it would be enough to at least know which parameter and maybe return type a function has. When I add this whole line with native to my syntax highlighting file of course it won't match the written stuff.
I need to specify some "extra information" for all highlighted items.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]