From 355579e09622705073b73af68b593ef4ede8200e Mon Sep 17 00:00:00 2001 From: clsr Date: Mon, 4 Sep 2017 13:44:39 +0200 Subject: Add support for CNM 0.4 and CNM 0.4 --- syntax/cnm.vim | 2 +- syntax/cnmfmt.vim | 16 ++++++++-------- 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: " 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: -" 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: -" 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 -- cgit