• R/O
  • HTTP
  • SSH
  • HTTPS

kink.vim: Commit

Vim Plugins for Kink Programming Language


Commit MetaInfo

Revisãoad019c420ba8c953b9127d2eb7977953863e1c19 (tree)
Hora2017-05-31 12:47:31
AutorMiyakawa Taku <miyakawa.taku@gmai...>
CommiterMiyakawa Taku

Mensagem de Log

add let syntax

Mudança Sumário

Diff

--- a/ftplugin/kink.vim
+++ b/ftplugin/kink.vim
@@ -1,7 +1,7 @@
11 " Vim filetype plugin for Kink
22 " Language: Kink (http://code.google.com/p/kink-lang/)
33 " Maintainer: Miyakawa Taku <miyakawa.taku@gmail.com>
4-" Last Change: 2013-02-01
4+" Last Change: 2017-05-31
55
66 " Copyright (c) 2013 Miyakawa Taku
77 "
@@ -33,7 +33,7 @@ set cpo&vim
3333
3434 setlocal iskeyword=a-z,A-Z,_,?,48-57
3535 setlocal nrformats-=octal
36-setlocal comments=:######,:#####,:####,:###,:##,:#
36+setlocal comments=:#
3737 setlocal commentstring=#%s
3838 setlocal formatoptions-=t
3939 setlocal formatoptions+=croql
--- a/syntax/kink.vim
+++ b/syntax/kink.vim
@@ -1,7 +1,7 @@
11 " Vim syntax file
22 " Language: Kink (http://code.google.com/p/kink-lang/)
33 " Maintainer: Miyakawa Taku <miyakawa.taku@gmail.com>
4-" Last Change: 2017-04-12
4+" Last Change: 2017-05-31
55
66 " Copyright (c) 2013- Miyakawa Taku
77 "
@@ -31,11 +31,13 @@ endif
3131 let s:save_cpo = &cpo
3232 set cpo&vim
3333
34-syntax match kinkVerbRef "::\?[a-z_][a-zA-Z_0-9?]*"
35-syntax match kinkVerbDeref "\$\$\?[a-z_][a-zA-Z_0-9?]*"
34+syntax match kinkVerbRef "::\?\s*[a-z_][a-zA-Z_0-9?]*"
35+syntax match kinkVerbLet "@\s*[a-z_][a-zA-Z_0-9?]*"
36+syntax match kinkVerbDeref "\$\$\?\s*[a-z_][a-zA-Z_0-9?]*"
3637 syntax match kinkVerbCall "[a-z_][a-zA-Z_0-9?]*"
3738
38-syntax match kinkNounRef "::\?[A-Z][a-zA-Z_0-9?]*"
39+syntax match kinkNounRef "::\?\s*[A-Z][a-zA-Z_0-9?]*"
40+syntax match kinkNounLet "@\s*[A-Z][a-zA-Z_0-9?]*"
3941 syntax match kinkNounDeref "[A-Z][a-zA-Z_0-9?]*"
4042
4143 syntax keyword kinkTodo contained TODO FIXME XXX
@@ -51,8 +53,10 @@ syntax match kinkDecimal "[0-9][0-9_]*\.[0-9][0-9_]*"
5153 " Define the default highlighting.
5254 highlight default link kinkVerbRef Identifier
5355 highlight default link kinkVerbDeref Identifier
56+highlight default link kinkVerbLet Identifier
5457 highlight default link kinkNounRef Identifier
5558 highlight default link kinkNounDeref Identifier
59+highlight default link kinkNounLet Identifier
5660 highlight default link kinkComment Comment
5761 highlight default link kinkTodo Todo
5862 highlight default link kinkString String
Show on old repository browser