• R/O
  • HTTP
  • SSH
  • HTTPS

kink.vim: 提交

Vim Plugins for Kink Programming Language


Commit MetaInfo

修订版503d93c85d8ce8e5901aab43139e96dc926aa5d9 (tree)
时间2020-06-19 23:12:05
作者Taku <miyakawa.taku@gmai...>
CommiterTaku

Log Message

update pseudo vars and nums syntax

更改概述

差异

--- a/syntax/kink.vim
+++ b/syntax/kink.vim
@@ -1,7 +1,7 @@
11 " Vim syntax file
22 " Language: Kink (https://bitbucket.org/kink/kink/src)
33 " Maintainer: Miyakawa Taku <miyakawa.taku@gmail.com>
4-" Last Change: 2018-12-24
4+" Last Change: 2020-06-19
55
66 " Copyright (c) 2013- Miyakawa Taku
77 "
@@ -44,9 +44,9 @@ syntax region kinkString skip=+''+ matchgroup=kinkQuoteStart start=+'+ matchgrou
4444 syntax region kinkString skip=+\\.+ matchgroup=kinkQuoteStart start=+"+ matchgroup=kinkQuoteEnd end=+"+ contains=kinkStringEscape
4545 syntax region kinkString matchgroup=kinkQuoteStart start=+(\z(=\+\)'+ matchgroup=kinkQuoteEnd end=+'\z1)+
4646 syntax match kinkStringEscape contained +\\[0tnrabefv"\\]\|\\u[0-9a-f]\{4}\|\\x{[0-9a-f]\{1,6}}+
47-syntax match kinkPseudoVariable "\\\(env\|recv\|args\|[0-9][0-9_]*\|0x[0-9a-f_]*\|0b[01_]*\)\>"
48-syntax match kinkInteger "0x[0-9a-f_]*\|0b[01_]*\|[0-9][0-9_]*"
49-syntax match kinkDecimal "[0-9][0-9_]*\.[0-9][0-9_]*"
47+syntax match kinkPseudoVariable "\\\(binding\|recv\|args\)\>"
48+syntax match kinkInteger "\(0x_*[0-9a-f][0-9a-f_]*\|0b_*[01][01_]*\|[0-9][0-9_]*\)\>"
49+syntax match kinkDecimal "[0-9][0-9_]*\.[0-9][0-9_]*\>"
5050
5151 " Define the default highlighting.
5252 highlight default link kinkVerbRef Identifier
Show on old repository browser