> I presume you mean build_set_menu_item() and there the SETPTR() macro does
> the free.
Thanks, forgot to check the macro.
> It can't be fire since it has to monitor the command and restore the
> menu sensitivity when it finishes.
Sorry, I wasn't very precise. I meant fire from the plugins
@azonenberg pushed 2 commits.
c2243d3 Merge branch 'master' of git://github.com/geany/geany
5396354 Added support for syntax-highlighting BSDL files as VHDL
--
You are receiving this because you are subscribed to this thread.
View it on GitHub:
Okay, I got it working. File name has to be `filetypes.Kotlin.conf`.
`~/.config/geany/filedefs/filetypes.Kotlin.conf`:
```INI
[styling=C]
[keywords]
# https://kotlinlang.org/docs/reference/keyword-reference.html
primary=abstract assert break case catch class const continue default do else
enum
> I assume I need to do something more?
To read the docs more closely I'm afraid :)
You have the filename wrong, you havn't specified the lexer_filetype and you
havn't specified the tags parser, see for example
Thanks, that's probably the best way.
I made `~/.config/geany/filedefs/filetypes.kotlin`:
```INI
[styling=Java]
[keywords=Java]
# https://kotlinlang.org/docs/reference/keyword-reference.html
primary=as as? fun in !in object typealias val var when by constructor delegate
dynamic field file get
@esotericpig while you are waiting for Scintilla and Uctags, did you actually
try making a custom filetype using an existing lexer and parser?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
@esotericpig from what you mention it sounds like it'd be easy to create a
[custom filetype](https://www.geany.org/manual/#custom-filetypes) just adding a
few keywords, at least for the highlighting part, if the syntax is basically
C++.
For extracting symbols (the
> I opened up a feature request:
Yes, you are better off engaging directly with Scintilla.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1581#issuecomment-405204329
I opened up a feature request:
https://sourceforge.net/p/scintilla/feature-requests/1224/
So maybe someone with more knowledge of Scintilla will do it properly, or at
least help guide how to do it.
--
You are receiving this because you are subscribed to this thread.
Reply to this email
I forked the project on SourceForge, but seems like a lot of work, don't know
if I will get around to doing it (as I have other projects I'm working on).
I found this:
https://www.scintilla.org/Lexer.txt
Basically, you would need to copy this file as LexKotlin.cxx:
10 matches
Mail list logo