Mercurial > vim
view runtime/ftplugin/jsonc.vim @ 31904:a4358b58d3fb v9.0.1284
patch 9.0.1284: compiler warnings for uninitialized variables
Commit: https://github.com/vim/vim/commit/40b4872966d3886e7ff86184ae4ffb58704bf075
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 5 17:04:50 2023 +0000
patch 9.0.1284: compiler warnings for uninitialized variables
Problem: Compiler warnings for uninitialized variables. (Tony Mechelynck)
Solution: Add variable initializations.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 Feb 2023 18:15:03 +0100 |
parents | bb2175e5ccee |
children | 7c7432a53a6c |
line wrap: on
line source
" Vim filetype plugin " Language: JSONC (JSON with Comments) " Original Author: Izhak Jakov <izhak724@gmail.com> " Acknowledgement: Based off of vim-jsonc maintained by Kevin Locke <kevin@kevinlocke.name> " https://github.com/kevinoid/vim-jsonc " License: MIT " Last Change: 2021 Nov 22 runtime! ftplugin/json.vim if exists('b:did_ftplugin_jsonc') finish else let b:did_ftplugin_jsonc = 1 endif " Set comment (formatting) related options. {{{1 setlocal commentstring=//%s comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// " Let Vim know how to disable the plug-in. let b:undo_ftplugin = 'setlocal commentstring< comments<'