-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
scriptencoding utf-8 | ||
" | ||
|
||
" Vim syntax file | ||
" Language: Pandoc (superset of Markdown) | ||
" Maintainer: Felipe Morales <[email protected]> | ||
" Maintainer: Caleb Maclennan <[email protected]> | ||
" Upstream: https://github.com/vim-pandoc/vim-pandoc-syntax | ||
" | ||
" Contributor: David Sanson <[email protected]> | ||
" Jorge Israel Peña <[email protected]> | ||
" Christian Brabandt @chrisbra | ||
" Jorge Israel Peña <[email protected]> | ||
" Christian Brabandt @chrisbra | ||
" Original Author: Jeremy Schultz <[email protected]> | ||
" Version: 5.0 | ||
" Last Change: 2024 Apr 08 | ||
|
@@ -223,6 +223,16 @@ command! -buffer -nargs=1 -complete=syntax PandocUnhighlight call DisableEmbedsf | |
" BASE: | ||
syntax clear | ||
syntax spell toplevel | ||
|
||
" apply extra settings: {{{1 | ||
if g:pandoc#syntax#colorcolumn == 1 | ||
exe 'setlocal colorcolumn='.string(&textwidth+5) | ||
elseif g:pandoc#syntax#colorcolumn == 2 | ||
exe 'setlocal colorcolumn='.join(range(&textwidth+5, 2*&columns), ',') | ||
endif | ||
if g:pandoc#syntax#conceal#use != 0 | ||
setlocal conceallevel=2 | ||
endif | ||
" }}}1 | ||
|
||
" Syntax Rules: {{{1 | ||
|