Skip to content

Commit

Permalink
Add Kotlin custom filetype from github.com/esotericpig
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrel committed Jun 13, 2019
1 parent 770cda4 commit db0aa2f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ filetypes = \
filedefs/filetypes.latex \
filedefs/filetypes.lisp \
filedefs/filetypes.lua \
filedefs/filetypes.Kotlin.conf \
filedefs/filetypes.makefile \
filedefs/filetypes.markdown \
filedefs/filetypes.matlab \
Expand Down
31 changes: 31 additions & 0 deletions data/filedefs/filetypes.Kotlin.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[styling=C]

[keywords]
# https://kotlinlang.org/docs/reference/keyword-reference.html
primary=abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while true false null as fun 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 Void
# documentation keywords for javadoc
doccomment=author deprecated exception param return see serial serialData serialField since throws todo version
typedefs=

[lexer_properties=C]

[settings]
lexer_filetype=C
tag_parser=C
extension=kt
mime_type=text/x-kotlin

[build-menu]
FT_00_LB=_Compile Kotlin Class
FT_00_CM=kotlinc "%f"
FT_00_WD=

EX_00_LB=_Execute Kotlin Class
EX_00_CM=kotlin "%eKt"
EX_00_WD=

EX_01_LB=Execute Kotlin _Script
EX_01_CM=kotlinc -script "%f"
EX_01_WD=
3 changes: 2 additions & 1 deletion data/filetype_extensions.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ HTML=*.htm;*.html;*.shtml;*.hta;*.htd;*.htt;*.cfm;*.tpl;
Java=*.java;*.jsp;
Javascript=*.js;
JSON=*.json;
Kotlin=*.kt;*.kts;
LaTeX=*.tex;*.sty;*.idx;*.ltx;*.latex;*.aux;*.bib;
Lisp=*.lisp;
Lua=*.lua;
Expand Down Expand Up @@ -76,7 +77,7 @@ None=*;

# Note: restarting is required after editing groups
[Groups]
Programming=Arduino;Clojure;CUDA;Cython;Genie;Scala;Swift;
Programming=Arduino;Clojure;CUDA;Cython;Genie;Kotlin;Scala;Swift;
Script=Graphviz;
Markup=
Misc=JSON;
Expand Down

0 comments on commit db0aa2f

Please sign in to comment.