This looks very promising, autocomplete for the REAPER/LUA API works like a charm. One suggestion, though: in LUA, there is no different color for the API calls, it's all white. For instance reaper.get_action_context() etc.
It would be very clever to have them colored, too?

Quote:

Originally Posted by mespotine

Is there a way to expand it with syntax-highlighting for my own functions? Or for Lokasenna's Gui-Lib?

You can create tmLanguage files (please follow the existing format of having JSON files in src and tmLanguage in root folder) that define what function is what through defining scopes. Have a look at ReaSyntax - EEL.tmLanguage and ReaSyntax - JS.tmLanguage to see how it's done. Remember to use JSON cause it's much easier to edit and converting to tmLanguage can be done quite easily(package that offers commands to do that is called SerializedDataConverter)

If you want a special highlighting, after that you will have to create themes that highlight specific functions in specific scopes defined in tmLanguage files. When you do that, please use common sense when defining scopes. Most coders, me included, don't have that much need for so much different colors. A function is a function is a function, right? Having many colors sounds like fun but it's hard to maintain and readability is achived through smart use of spaces, formating, variable naming and such.

For general stuff I guess EEL tmLanguage file can be reused - but we will again have a problem with syntax being loaded for all Lua files, not just REAPER ones. This is easily solvable - example is already there in ReaScript.py where JS file detection happens

I would be much more grafetull if someone with more Sublime Text chops than me can fix loading of autocompletion files for specific files only

That said, if you want to contribute, simply do it and do a pull request. Please make it clean or I won't accept it. Unfortunately, I don't have much time to fix and test stuff I don't use.