• R/O
  • HTTP
  • SSH
  • HTTPS

kink.vim: Commit

Vim Plugins for Kink Programming Language


Commit MetaInfo

Revisãodfad7f97edbd47c117e71dcd8ff6e0b5a540742b (tree)
Hora2018-12-24 15:39:39
AutorMiyakawa Taku <miyakawa.taku@gmai...>
CommiterMiyakawa Taku

Mensagem de Log

update the syntax

Mudança Sumário

Diff

--- a/syntax/kink.vim
+++ b/syntax/kink.vim
@@ -1,7 +1,7 @@
11 " Vim syntax file
2-" Language: Kink (http://code.google.com/p/kink-lang/)
2+" Language: Kink (https://bitbucket.org/kink/kink/src)
33 " Maintainer: Miyakawa Taku <miyakawa.taku@gmail.com>
4-" Last Change: 2017-05-31
4+" Last Change: 2018-12-24
55
66 " Copyright (c) 2013- Miyakawa Taku
77 "
@@ -31,14 +31,12 @@ endif
3131 let s:save_cpo = &cpo
3232 set cpo&vim
3333
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?]*"
37-syntax match kinkVerbCall "[a-z_][a-zA-Z_0-9?]*"
34+syntax match kinkVerbRef ":\s*[a-z_][a-z_0-9?]*"
35+syntax match kinkVerbDeref "\$\s*[a-z_][a-z_0-9?]*"
36+syntax match kinkVerbCall "[a-z_][a-z_0-9?]*"
3837
39-syntax match kinkNounRef "::\?\s*[A-Z][a-zA-Z_0-9?]*"
40-syntax match kinkNounLet "@\s*[A-Z][a-zA-Z_0-9?]*"
41-syntax match kinkNounDeref "[A-Z][a-zA-Z_0-9?]*"
38+syntax match kinkNounRef ":\s*\([a-z_][a-z_0-9?]*\)\?[A-Z][a-zA-Z_0-9?]*"
39+syntax match kinkNounDeref "\([a-z_][a-z_0-9?]*\)\?[A-Z][a-zA-Z_0-9?]*"
4240
4341 syntax keyword kinkTodo contained TODO FIXME XXX
4442 syntax match kinkComment "#.*" contains=kinkTodo
@@ -53,10 +51,8 @@ syntax match kinkDecimal "[0-9][0-9_]*\.[0-9][0-9_]*"
5351 " Define the default highlighting.
5452 highlight default link kinkVerbRef Identifier
5553 highlight default link kinkVerbDeref Identifier
56-highlight default link kinkVerbLet Identifier
5754 highlight default link kinkNounRef Identifier
5855 highlight default link kinkNounDeref Identifier
59-highlight default link kinkNounLet Identifier
6056 highlight default link kinkComment Comment
6157 highlight default link kinkTodo Todo
6258 highlight default link kinkString String
Show on old repository browser