All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
002a169)
Ubuntu vim package does not have json syntax.
mkdir -pv ${REGISTRY}
cp -v registry/markdown.yaml ${REGISTRY}/markdown.yaml
mkdir -pv ${REGISTRY}
cp -v registry/markdown.yaml ${REGISTRY}/markdown.yaml
-test: build/tabular build/vim-toml build/vader.vim
+test: build/tabular build/vim-toml build/vim-json build/vader.vim
test/run-tests.sh
.PHONY: test
test/run-tests.sh
.PHONY: test
-update: build/tabular build/vim-toml build/vader.vim
+update: build/tabular build/vim-toml build/vim-json build/vader.vim
cd build/tabular && git pull
cd build/vim-toml && git pull
cd build/tabular && git pull
cd build/vim-toml && git pull
+ cd build/vim-json && git pull
cd build/vader.vim && git pull
.PHONY: update
cd build/vader.vim && git pull
.PHONY: update
build/vim-toml: | build
git clone https://github.com/cespare/vim-toml build/vim-toml
build/vim-toml: | build
git clone https://github.com/cespare/vim-toml build/vim-toml
+build/vim-json: | build
+ git clone https://github.com/elzr/vim-json build/vim-json
+
build/vader.vim: | build
git clone https://github.com/junegunn/vader.vim build/vader.vim
build/vader.vim: | build
git clone https://github.com/junegunn/vader.vim build/vader.vim
Highlight JSON front matter as used by [Hugo](https://gohugo.io/content/front-matter/).
Highlight JSON front matter as used by [Hugo](https://gohugo.io/content/front-matter/).
+JSON syntax highlight requires [vim-json](https://github.com/elzr/vim-json).
+
```vim
let g:vim_markdown_json_frontmatter = 1
```
```vim
let g:vim_markdown_json_frontmatter = 1
```
endif
if get(g:, 'vim_markdown_json_frontmatter', 0)
endif
if get(g:, 'vim_markdown_json_frontmatter', 0)
- syn include @jsonTop syntax/json.vim
- syn region Comment matchgroup=mkdDelimiter start="\%^{$" end="^}$" contains=@jsonTop
- unlet! b:current_syntax
+ try
+ syn include @jsonTop syntax/json.vim
+ syn region Comment matchgroup=mkdDelimiter start="\%^{$" end="^}$" contains=@jsonTop
+ unlet! b:current_syntax
+ catch /E484/
+ syn region Comment matchgroup=mkdDelimiter start="\%^{$" end="^}$"
+ endtry
endif
if get(g:, 'vim_markdown_math', 0)
endif
if get(g:, 'vim_markdown_math', 0)
cd "$( dirname "${BASH_SOURCE[0]}" )"
cd "$( dirname "${BASH_SOURCE[0]}" )"
-for dep in ../build/tabular ../build/vim-toml ../build/vader.vim; do
+for dep in ../build/tabular ../build/vim-toml ../build/vim-json ../build/vader.vim; do
if [[ ! -d $dep ]]; then
echo "Missing dependency: $dep"
echo "You may just want to use 'make test'."
if [[ ! -d $dep ]]; then
echo "Missing dependency: $dep"
echo "You may just want to use 'make test'."
set rtp+=../
set rtp+=../build/tabular/
set rtp+=../build/vim-toml/
set rtp+=../
set rtp+=../build/tabular/
set rtp+=../build/vim-toml/
+set rtp+=../build/vim-json/
set rtp+=../build/vader.vim/
let $LANG='en_US'
filetype on
set rtp+=../build/vader.vim/
let $LANG='en_US'
filetype on