a70b18dd62b2dcffa33beb4308dc6108f05d512b
[dotfiles/.git] / kotlin.nanorc
1 # Nano syntax file
2 # Language:     Kotlin
3 # Maintainer:   Bjarne Holen <bjarneholen@gmail.com>
4 # Edited by:    Ritiek Malhotra <ritiekmalhotra123@gmail.com>
5 # Last Change:  2017 May 24
6 # Copyright (c) 2014, Bjarne Holen
7
8 syntax "kotlin" "\.kt$" "\.kts$"
9 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"
10 color yellow "[.:;,+*|=!\%@]" "<" ">" "/" "-" "&"
11 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)\>"
12 color yellow "\<(true|false|null)\>"
13 color cyan "\<(break|catch|continue|do|else|finally|for|if|return|throw|try|while|repeat)\>"
14 color brightred "\<(inner|outer)\>"
15 ##
16 ## String highlighting.  You will in general want your comments and
17 ## strings to come last, because syntax highlighting rules will be
18 ## applied in the order they are read in.
19 color brightblue "<[^=  ]*>" ""(\\.|[^"])*""
20
21 ## Comment highlighting
22 color red "^\s*//.*"
23 color red start="/\*" end="\*/"
24
25 ## Trailing whitespace
26 color ,green "[[:space:]]+$"