From d1d39ec8e92872864ac624e0c4f7f7b54057569f Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 22 Dec 2019 17:00:19 +0530 Subject: [PATCH 1/2] kotlin: Add the 'constructor' qualifier Signed-off-by: Harsh Shandilya --- kotlin.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin.nanorc b/kotlin.nanorc index a70b18d..4fd6a13 100644 --- a/kotlin.nanorc +++ b/kotlin.nanorc @@ -8,7 +8,7 @@ syntax "kotlin" "\.kt$" "\.kts$" color magenta "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b" color yellow "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&" -color green "\<(namespace|as|type|class|this|super|val|var|fun|is|in|object|when|trait|import|where|by|get|set|abstract|enum|open|annotation|override|private|public|internal|protected|out|vararg|inline|final|package|lateinit)\>" +color green "\<(namespace|as|type|class|this|super|val|var|fun|is|in|object|when|trait|import|where|by|get|set|abstract|enum|open|annotation|override|private|public|internal|protected|out|vararg|inline|final|package|lateinit|constructor)\>" color yellow "\<(true|false|null)\>" color cyan "\<(break|catch|continue|do|else|finally|for|if|return|throw|try|while|repeat)\>" color brightred "\<(inner|outer)\>" From 39a6f5d9b6eab852ff81ff403b33fff2ba68c0bd Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 1 Jan 2020 23:20:28 +0530 Subject: [PATCH 2/2] kotlin: Add companion and const qualifiers Signed-off-by: Harsh Shandilya --- kotlin.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin.nanorc b/kotlin.nanorc index 4fd6a13..0872cb3 100644 --- a/kotlin.nanorc +++ b/kotlin.nanorc @@ -8,7 +8,7 @@ syntax "kotlin" "\.kt$" "\.kts$" color magenta "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "\b0x[1-9a-f][0-9a-f]*\b" color yellow "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&" -color green "\<(namespace|as|type|class|this|super|val|var|fun|is|in|object|when|trait|import|where|by|get|set|abstract|enum|open|annotation|override|private|public|internal|protected|out|vararg|inline|final|package|lateinit|constructor)\>" +color green "\<(namespace|as|type|class|this|super|val|var|fun|is|in|object|when|trait|import|where|by|get|set|abstract|enum|open|annotation|override|private|public|internal|protected|out|vararg|inline|final|package|lateinit|constructor|companion|const)\>" color yellow "\<(true|false|null)\>" color cyan "\<(break|catch|continue|do|else|finally|for|if|return|throw|try|while|repeat)\>" color brightred "\<(inner|outer)\>"