diff options
author | clsr <clsr@clsr.net> | 2017-09-04 13:44:39 +0200 |
---|---|---|
committer | clsr <clsr@clsr.net> | 2017-09-04 13:44:39 +0200 |
commit | 355579e09622705073b73af68b593ef4ede8200e (patch) | |
tree | 58b156593194bf6fb46247766593b094872a085e | |
parent | 68ce508ca7cb84fe6a931c75f651d78c833096fb (diff) | |
download | vim-contnet-355579e09622705073b73af68b593ef4ede8200e.tar.gz vim-contnet-355579e09622705073b73af68b593ef4ede8200e.zip |
Add support for CNM 0.4 and CNM 0.4v0.1.2
-rw-r--r-- | syntax/cnm.vim | 2 | ||||
-rw-r--r-- | syntax/cnmfmt.vim | 16 | ||||
-rw-r--r-- | syntax/cnp.vim | 8 |
3 files changed, 13 insertions, 13 deletions
diff --git a/syntax/cnm.vim b/syntax/cnm.vim index 5d3fabf..0e709d8 100644 --- a/syntax/cnm.vim +++ b/syntax/cnm.vim @@ -1,5 +1,5 @@ " Vim syntax file -" Language: CNM 0.3 +" Language: CNM 0.4 " Maintainer: <clsr@clsr.net> " Last Change: 2017-08-18 " Version: 0.1.0 diff --git a/syntax/cnmfmt.vim b/syntax/cnmfmt.vim index 8787f08..be274b4 100644 --- a/syntax/cnmfmt.vim +++ b/syntax/cnmfmt.vim @@ -1,8 +1,8 @@ " Vim syntax file -" Language: CNMfmt (CNM 0.3) +" Language: CNMfmt (CNM 0.4) " Maintainer: <clsr@clsr.net> -" Last Change: 2017-08-18 -" Version: 0.1.0 +" Last Change: 2017-09-01 +" Version: 0.2.0 " Bugs: expects LIFO tags if !exists('g:main_syntax') @@ -13,10 +13,10 @@ if !exists('g:main_syntax') endif let s:fmts = { - \ 'B': {'tag': '\*', 'cterm': 'bold'}, - \ 'I': {'tag': '/', 'cterm': 'italic'}, - \ 'U': {'tag': '_', 'cterm': 'underline'}, + \ 'A': {'tag': '_', 'cterm': 'italic'}, + \ 'E': {'tag': '\*', 'cterm': 'bold'}, \ 'M': {'tag': '`', 'cterm': 'inverse'}, + \ 'Q': {'tag': '\"', 'cterm': 'underline'}, \ } let s:fmtkeepend = 1 @@ -56,14 +56,14 @@ endfor syn cluster cnmfmt contains=@cnmfmts,@cnmfmtStyles syn cluster cnmfmts contains=cnmfmtLink,cnmfmtEscape -syn cluster cnmfmtStyles contains=cnmfmtB,cnmfmtI,cnmfmtU,cnmfmtM +syn cluster cnmfmtStyles contains=cnmfmtA,cnmfmtE,cnmfmtM,cnmfmtQ syn region cnmfmtLink matchgroup=cnmfmtLinkAt start="@@" end="@@\|\n\t*\n" skip="\\\\\|\\@" keepend contained contains=cnmfmtLinkUrl syn match cnmfmtLinkText ".*" contained contains=@cnmfmtStyles syn match cnmfmtLinkUrl "\(\\ \|\S\)\+" contained nextgroup=cnmfmtLinkText -syn match cnmfmtEscape +\\[nt\\ */_`@]+ +syn match cnmfmtEscape +\\[nt\\ *_`"@]+ syn match cnmfmtEscape +\\x\x\{2\}+ syn match cnmfmtEscape +\\u\x\{4\}+ syn match cnmfmtEscape +\\U\x\{8\}+ diff --git a/syntax/cnp.vim b/syntax/cnp.vim index a8139ec..6a2ddd0 100644 --- a/syntax/cnp.vim +++ b/syntax/cnp.vim @@ -1,8 +1,8 @@ " Vim syntax file -" Language: CNP 0.3rc1 +" Language: CNP 0.4 " Maintainer: <clsr@clsr.net> -" Last Change: 2017-08-05 -" Version: 0.1.0-dev +" Last Change: 2017-08-29 +" Version: 0.2.0 if !exists('g:main_syntax') if exists('b:current_syntax') @@ -36,7 +36,7 @@ endif syn match cnpUnsupported "cnp/\d\+\.\d\+" contained syn match cnpSupported "cnp/0\.3" contained -"syn match cnpSupported "cnp/0\.4" contained +syn match cnpSupported "cnp/0\.4" contained syn match cnpIntent " \([^\n=\\ ]\|\\[n_0\\-]\)\+\n\?" contained contains=cnpError,cnpIntentMisc,cnpIntentResponse,cnpIntentRequest keepend nextgroup=cnpParameters,cnpBody |