mirror of
https://github.com/scopatz/nanorc
synced 2024-11-24 17:45:38 +01:00
commit
f71033167d
26
kotlin.nanorc
Normal file
26
kotlin.nanorc
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# Nano syntax file
|
||||||
|
# Language: Kotlin
|
||||||
|
# Maintainer: Bjarne Holen <bjarneholen@gmail.com>
|
||||||
|
# Edited by: Ritiek Malhotra <ritiekmalhotra123@gmail.com>
|
||||||
|
# Last Change: 2017 May 24
|
||||||
|
# Copyright (c) 2014, Bjarne Holen
|
||||||
|
|
||||||
|
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)\>"
|
||||||
|
color yellow "\<(true|false|null)\>"
|
||||||
|
color cyan "\<(break|catch|continue|do|else|finally|for|if|return|throw|try|while|repeat)\>"
|
||||||
|
color brightred "\<(inner|outer)\>"
|
||||||
|
##
|
||||||
|
## String highlighting. You will in general want your comments and
|
||||||
|
## strings to come last, because syntax highlighting rules will be
|
||||||
|
## applied in the order they are read in.
|
||||||
|
color brightblue "<[^= ]*>" ""(\\.|[^"])*""
|
||||||
|
|
||||||
|
## Comment highlighting
|
||||||
|
color red "//.*"
|
||||||
|
color red start="/\*" end="\*/"
|
||||||
|
|
||||||
|
## Trailing whitespace
|
||||||
|
color ,green "[[:space:]]+$"
|
1
nanorc
1
nanorc
@ -40,6 +40,7 @@ include "~/.nano/js.nanorc"
|
|||||||
include "~/.nano/json.nanorc"
|
include "~/.nano/json.nanorc"
|
||||||
include "~/.nano/keymap.nanorc"
|
include "~/.nano/keymap.nanorc"
|
||||||
include "~/.nano/kickstart.nanorc"
|
include "~/.nano/kickstart.nanorc"
|
||||||
|
include "~/.nano/kotlin.nanorc"
|
||||||
include "~/.nano/ledger.nanorc"
|
include "~/.nano/ledger.nanorc"
|
||||||
include "~/.nano/lisp.nanorc"
|
include "~/.nano/lisp.nanorc"
|
||||||
include "~/.nano/lua.nanorc"
|
include "~/.nano/lua.nanorc"
|
||||||
|
Loading…
Reference in New Issue
Block a user