summaryrefslogtreecommitdiffstats
path: root/syntax/cnp.vim
diff options
context:
space:
mode:
authorclsr <clsr@clsr.net>2017-08-29 15:10:04 +0200
committerclsr <clsr@clsr.net>2017-08-29 15:10:04 +0200
commit68ce508ca7cb84fe6a931c75f651d78c833096fb (patch)
tree33e0e42a2429e77a12fae86888a09096a9d0df74 /syntax/cnp.vim
parent193372dd54709926bdab588d5c665e07f0e5fff6 (diff)
downloadvim-contnet-68ce508ca7cb84fe6a931c75f651d78c833096fb.tar.gz
vim-contnet-68ce508ca7cb84fe6a931c75f651d78c833096fb.zip
Update CNP select paramter highlighting for draft/cnp-selectv0.1.1
Diffstat (limited to 'syntax/cnp.vim')
-rw-r--r--syntax/cnp.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/syntax/cnp.vim b/syntax/cnp.vim
index da9f4ba..a8139ec 100644
--- a/syntax/cnp.vim
+++ b/syntax/cnp.vim
@@ -84,7 +84,12 @@ call s:generateParamKey('Reason', 'Reason', 'reason')
call s:generateParamVal('Reason', '\<\(syntax\|version\|invalid\|not_supported\|too_large\|not_found\|denied\|rejected\|server_error\)\>')
call s:generateParamKey('Select', 'Selector', 'select')
-call s:generateParamVal('Selector', 'bytes:\(0\|[1-9][0-9]*\)\?-\(0\|[1-9][0-9]*\)\?')
+call s:generateParamVal('Selector', 'byte:\(0\|[1-9][0-9]*\)\?-\(0\|[1-9][0-9]*\)\?')
+call s:generateParamVal('Selector', 'info:')
+call s:generateParamVal('Selector', 'cnm:!\?')
+call s:generateParamVal('Selector', 'cnm:!\?/\(\([^ /]\+\)\(/[^ /]\+\)*\)\?')
+call s:generateParamVal('Selector', 'cnm:!\?#[^ /]*')
+call s:generateParamVal('Selector', 'cnm:!\?\$\(\([1-9][0-9]*\)\(\.[1-9][0-9]*\)*\)\?')
hi def link cnpError Error