aboutsummaryrefslogtreecommitdiffhomepage
path: root/.config/nvim/my/after/syntax/json.vim
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2021-11-27 21:59:34 +0900
committernsfisis <nsfisis@gmail.com>2021-11-27 22:38:54 +0900
commit17975ffc46cc18ca49304b4780f20a5b0b91e4ca (patch)
tree00295b01bb6e92d32564fe205f5e1c7a3abca0b6 /.config/nvim/my/after/syntax/json.vim
parent318a31846d20cc80de090adee201de14965bf545 (diff)
downloaddotfiles-17975ffc46cc18ca49304b4780f20a5b0b91e4ca.tar.gz
dotfiles-17975ffc46cc18ca49304b4780f20a5b0b91e4ca.tar.zst
dotfiles-17975ffc46cc18ca49304b4780f20a5b0b91e4ca.zip
vim: minimize .vimrc
Diffstat (limited to '.config/nvim/my/after/syntax/json.vim')
-rw-r--r--.config/nvim/my/after/syntax/json.vim23
1 files changed, 23 insertions, 0 deletions
diff --git a/.config/nvim/my/after/syntax/json.vim b/.config/nvim/my/after/syntax/json.vim
new file mode 100644
index 0000000..0d2651e
--- /dev/null
+++ b/.config/nvim/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 <eli@elzr.com>
+" 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