|
1 | 1 | " Vim auto-load script |
2 | 2 | " Author: Peter Odding <peter@peterodding.com> |
3 | | -" Last Change: March 15, 2015 |
| 3 | +" Last Change: April 1, 2015 |
4 | 4 | " URL: http://peterodding.com/code/vim/notes/ |
5 | 5 |
|
6 | 6 | " Note: This file is encoded in UTF-8 including a byte order mark so |
7 | 7 | " that Vim loads the script using the right encoding transparently. |
8 | 8 |
|
9 | | -let g:xolox#notes#version = '0.32' |
| 9 | +let g:xolox#notes#version = '0.33' |
10 | 10 | let g:xolox#notes#url_pattern = '\<\(mailto:\|javascript:\|\w\{3,}://\)\(\S*\w\)\+/\?' |
11 | 11 | let s:scriptdir = expand('<sfile>:p:h') |
12 | 12 |
|
@@ -1180,8 +1180,9 @@ function! xolox#notes#highlight_sources(force) " {{{3 |
1180 | 1180 | let group = 'notesSnippet' . toupper(ft) |
1181 | 1181 | let include = s:syntax_include(ft) |
1182 | 1182 | for [startmarker, endmarker] in [['{{{', '}}}'], ['```', '```']] |
| 1183 | + let conceal = has('conceal') && xolox#misc#option#get('notes_conceal_code', 1) |
1183 | 1184 | let command = 'syntax region %s matchgroup=%s start="%s%s \?" matchgroup=%s end="%s" keepend contains=%s%s' |
1184 | | - execute printf(command, group, startgroup, startmarker, ft, endgroup, endmarker, include, has('conceal') ? ' concealends' : '') |
| 1185 | + execute printf(command, group, startgroup, startmarker, ft, endgroup, endmarker, include, conceal ? ' concealends' : '') |
1185 | 1186 | endfor |
1186 | 1187 | endfor |
1187 | 1188 | if &vbs >= 1 |
|
0 commit comments