• R/O
  • HTTP
  • SSH
  • HTTPS

kink.vim: Commit

Vim Plugins for Kink Programming Language


Commit MetaInfo

Revisãoe5b688a3eb6e03e1ac9c4ef440efa6036230fa11 (tree)
Hora2016-12-29 18:45:59
AutorMiyakawa Taku <miyakawa.taku@gmai...>
CommiterMiyakawa Taku

Mensagem de Log

apply the new syntax

Mudança Sumário

Diff

--- a/ftdetect/kink.vim
+++ b/ftdetect/kink.vim
@@ -1,7 +1,7 @@
11 " Vim filetype detection file
22 " Language: Kink (http://code.google.com/p/kink-lang/)
33 " Maintainer: Miyakawa Taku <miyakawa.taku@gmail.com>
4-" Last Change: 2013-06-13
4+" Last Change: 2016-12-29
55
66 " Copyright (c) 2013 Miyakawa Taku
77 "
@@ -28,7 +28,7 @@ set cpo&vim
2828
2929 autocmd BufRead,BufNewFile * silent call s:DetectKink()
3030
31-function s:DetectKink()
31+function! s:DetectKink()
3232 if expand('%') =~ '\.kn$' || getline(1) =~ '#!.*\<kink\>'
3333 setlocal filetype=kink
3434 endif
--- 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: 2014-10-12
4+" Last Change: 2016-12-29
55
66 " Copyright (c) 2013- Miyakawa Taku
77 "
@@ -37,7 +37,8 @@ syntax keyword kinkTodo contained TODO FIXME XXX
3737 syntax match kinkComment "#.*" contains=kinkTodo
3838 syntax region kinkString start=+'+ skip=+''+ end=+'+
3939 syntax region kinkString start=+"+ skip=+\\.+ end=+"+ contains=kinkStringEscape
40-syntax match kinkStringEscape contained +\\[0tnrabefv"\\]\|\\u[0-9a-f]\{4}\|\\U[0-9a-f]\{6}+
40+syntax region kinkString start=+(\z(=\+\)'+ end=+'\z1)+
41+syntax match kinkStringEscape contained +\\[0tnrabefv"\\]\|\\u[0-9a-f]\{4}\|\\x{[0-9a-f]\{1,6}}+
4142 syntax match kinkPseudoVariable "\\\(env\|recv\|args\|[0-9][0-9_]*\|0x[0-9a-f_]*\|0b[01_]*\)\>"
4243 syntax match kinkInteger "0x[0-9a-f_]*\|0b[01_]*\|[0-9][0-9_]*"
4344 syntax match kinkDecimal "[0-9][0-9_]*\.[0-9][0-9_]*"
Show on old repository browser