[Github-comments] [geany/geany] Kotlin Language Support (#1581)

Jonathan Bradley Whited notifications at xxxxx
Mon Jul 16 11:44:17 UTC 2018


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 init param property receiver set setparam where actual annotation companion const crossinline data expect external infix inline inner internal lateinit noinline open operator out reified sealed suspend tailrec vararg field it
# https://kotlinlang.org/docs/reference/basic-types.html
secondary=Double Float Long Int Short Byte NaN
# documentation keywords for javadoc
doccomment=
typedefs=

[lexer_properties=Java]

[settings=Java]
extension=kt
mime_type=text/x-kotlin

[build_settings]
# For this to work, the main class should be the same name as the file
compiler=kotlinc "%f"
run_cmd=kotlin "%e"

# If you usually use Kotlin as a scripting lang, use this instead
#compiler=
#run_cmd=kotlin -script "%f"
```

Then, in `filetype_extensions.conf` I added:

```INI
Kotlin=*.kt;*.kts;

[Groups]
Programming=Arduino;Clojure;CUDA;Cython;Genie;Scala;Kotlin
```

I assume I need to do something more? Where should I specify filetypes.kotlin?
Thanks

-- 
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-405221149
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180716/9a6972e0/attachment-0001.html>


More information about the Github-comments mailing list