Closed #1581 via #2186.
--
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#event-2499544180
> > You can add support by yourself, I made a tutorial for this. See the video
> > at
> > https://www.youtube.com/watch?v=C0eWBMTu4LU
>
> I mean that's great that you did this, but why wouldn't you just make a text
> comment here instead of a 14min video? It seems like you just want view
>
@esotericpig I've added a few things for Groovy and made a WIP pull: #2188.
Please test it and advise on what the build commands should be.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
> I tried to make one, but it's a bit more difficult
Thanks, I've made a start using the C lexer with properties set for dollar
identifiers and triple quoted `"""strings"""`:
https://github.com/ntrel/geany/commits/groovy-ft
The other strings aren't supported by Scintilla's LexCPP AFAIK.
--
> @esotericpig Thanks, I've made a pull to add this: #2186.
>
> > I'd like to also add Groovy.
>
> I'm happy to merge that if done as a custom filetype.
Thank you.
I tried to make one, but it's a bit more difficult. Specifically stuff like
this:
```Groovy
println "${string_interop}"
println
@esotericpig Thanks, I've made a pull to add this: #2186.
> I'd like to also add Groovy.
I'm happy to merge that if done as a custom filetype.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
> You can add support by yourself, I made a tutorial for this. See the video at
>
> https://www.youtube.com/watch?v=C0eWBMTu4LU
I mean that's great that you did this, but why wouldn't you just make a text
comment here instead of a 14min video? It seems like you just want view counts
on your YT
> > filetypes.Kotlin.conf
>
> @esotericpig Is this custom filetype good enough to distribute with Geany,
> have you or others tested it with much Kotlin code?
It's not perfect, but it's better than nothing I think. I use it in my projects
fine.
--
You are receiving this because you are
You can add support by yourself, I made a tutorial for this. See the video in
https://www.youtube.com/watch?v=C0eWBMTu4LU
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
> filetypes.Kotlin.conf
@esotericpig Is this custom filetype good enough to distribute with Geany, have
you or others tested it with much Kotlin code?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
> What the status of this feature? has it made its way into a release yet?
AFAIK nobody has made a pull request so its unlikely to be in any release.
> and would love support for my new favourite language in my favourite editor :)
Feel free to contribute it.
--
You are receiving this because
What the status of this feature? has it made its way into a release yet?
I've used Scintilla-based editors for years,
and would love support for my new favourite language in my favourite editor :)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly
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:
@esotericpig I'm not aware of any better docs than those projects own
resources, maybe you could ask there (they are both totally separate projects
from Geany, we just use their products).
Maybe its not clear from the post above, but you can (actually must) use the
lexer of an existing
I went to the Scintilla website, but the documentation is pretty bad (IMO) for
adding a new language. Is there an example or documentation available for how
to add a new language? And also for making a pull request? (Wish it was on
GitHub.)
I'd like to also add Groovy.
I also don't know what
Feel free to post a pull request with a custom filetype file, maybe based on
Java.
Note that if Kotlin needs specific highlighting and symbols support those need
to be added to the [Scintilla](https://www.scintilla.org/) and
[UCtags](https://github.com/universal-ctags/ctags) first before the
I wanna move back the Geany again :pray:
--
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-404940871
+1 I'd like this feature as well :)
--
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-404926409
25 matches
Mail list logo