From ed4b5f69144ee6f93e0c7059b3676c230cbce581 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 19 Nov 2021 22:28:06 +0900 Subject: vim: make vim XDG-Base-Directory-aware --- .config/vim/my/after/syntax/json.vim | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .config/vim/my/after/syntax/json.vim (limited to '.config/vim/my/after/syntax/json.vim') diff --git a/.config/vim/my/after/syntax/json.vim b/.config/vim/my/after/syntax/json.vim new file mode 100644 index 0000000..0d2651e --- /dev/null +++ b/.config/vim/my/after/syntax/json.vim @@ -0,0 +1,23 @@ +scriptencoding utf-8 + +if exists("b:current_syntax_my_json") + finish +endif + +if b:current_syntax !=# 'json' + finish +endif + + +" $VIMRUNTIME/syntax/json.vim +" Language: JSON +" Maintainer: Eli Parra +" Last Change: 2014 Aug 23 +" Version: 0.12 +" Overwrite syntax by non-conceal version even if 'conceal' is enabled. +syn region jsonString oneline matchgroup=jsonQuote start=/"/ skip=/\\\\\|\\"/ end=/"/ contains=jsonEscape contained +syn region jsonKeyword matchgroup=jsonQuote start=/"/ end=/"\ze[[:blank:]\r\n]*\:/ contained + + + +let b:current_syntax_my_json = 1 -- cgit v1.2.3-70-g09d2