Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/code/org.eclipse.fx.code.editor.langs/src/org/eclipse/fx/code/editor/ldef/langs/kotlin.ldef')
-rw-r--r--bundles/code/org.eclipse.fx.code.editor.langs/src/org/eclipse/fx/code/editor/ldef/langs/kotlin.ldef61
1 files changed, 61 insertions, 0 deletions
diff --git a/bundles/code/org.eclipse.fx.code.editor.langs/src/org/eclipse/fx/code/editor/ldef/langs/kotlin.ldef b/bundles/code/org.eclipse.fx.code.editor.langs/src/org/eclipse/fx/code/editor/ldef/langs/kotlin.ldef
new file mode 100644
index 000000000..896c1c60f
--- /dev/null
+++ b/bundles/code/org.eclipse.fx.code.editor.langs/src/org/eclipse/fx/code/editor/ldef/langs/kotlin.ldef
@@ -0,0 +1,61 @@
+package org.eclipse.fx.code.editor.ldef.langs
+
+kotlin {
+ partitioning {
+ partition __dftl_partition_content_type
+ partition __kotlin_multi_line_api_comment
+ partition __kotlin_single_line_comment
+ partition __kotlin_multi_line_comment
+ partition __kotlin_string
+ rule {
+ single_line __kotlin_single_line_comment "//" => ''
+ multi_line __kotlin_multi_line_api_comment "/**" => "*/"
+ multi_line __kotlin_multi_line_comment "/*" => "*/"
+ single_line __kotlin_string '"' => '"' escaped by "\\"
+ }
+ }
+ lexical_highlighting {
+ rule __dftl_partition_content_type {
+ default kotlin_default
+ kotlin_keyword {
+ keywords [
+ "break", "continue", "return", "if", "else", "when"
+ , "do", "for", "while", "as", "in", "is"
+ , "by", "get", "set", "out", "super", "this"
+ , "This", "where", "try", "catch", "finally", "throw"
+ , "import", "package", "annotation", "companion","enum", "inner"
+ , "internal", "private", "protected", "public", "abstract", "final"
+ , "open", "override", "sealed", "vararg", "dynamic", "class"
+ , "object", "interface", "trait", "fun", "val", "var"
+ , "constructor", "init", "typealias"
+ , "data", "inline", "reified", "native", "synchronized"
+ , "transient", "volatile"
+ ]
+ }
+ kotlin_literals {
+ keywords [
+ "true", "false", "null"
+ ]
+ }
+ }
+ rule __kotlin_multi_line_api_comment {
+ default kotlin_api_doc_default
+ }
+ rule __kotlin_single_line_comment {
+ default kotlin_doc_default
+ }
+ rule __kotlin_multi_line_comment {
+ default kotlin_doc_default
+ }
+ rule __kotlin_string {
+ default kotlin_string
+ }
+ }
+ integration {
+ javafx {
+ java "org.eclipse.fx.code.editor.langs.codegen.fx.kotlin" {
+ project : "org.eclipse.fx.code.editor.langs.codegen.fx"
+ }
+ }
+ }
+} \ No newline at end of file

Back to the top