Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Okeanos committed Sep 10, 2023
1 parent 52a93f3 commit 917d9af
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ max_line_length = 120
trim_trailing_whitespace = false # Allow ' ' token for Markdown to create new lines

[*.vim]
indent_size = 4
indent_size = 2

[dot-vimrc]
indent_style = space
indent_size = 4
indent_size = 2
46 changes: 23 additions & 23 deletions stow/vim/.vim/syntax/json.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
" For version 6.x: Quit when a syntax file was already loaded

if !exists("main_syntax")
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
let main_syntax = 'json'
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
let main_syntax = 'json'
endif

" Syntax: Strings {{{2
Expand Down Expand Up @@ -49,26 +49,26 @@ syn match jsonBraces "[{}\[\]]"
" For version 5.7 and earlier: only when not done already
" For version 5.8 and later: only when an item doesn't have highlighting yet
if version >= 508 || !exists("did_json_syn_inits")
if version < 508
let did_json_syn_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
HiLink jsonString String
HiLink jsonEscape Special
HiLink jsonNumber Number
HiLink jsonBraces Operator
HiLink jsonNull Function
HiLink jsonBoolean Boolean
if version < 508
let did_json_syn_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
HiLink jsonString String
HiLink jsonEscape Special
HiLink jsonNumber Number
HiLink jsonBraces Operator
HiLink jsonNull Function
HiLink jsonBoolean Boolean

HiLink jsonNumError Error
HiLink jsonStringSQ Error
HiLink jsonNoQuotes Error
delcommand HiLink
HiLink jsonNumError Error
HiLink jsonStringSQ Error
HiLink jsonNoQuotes Error
delcommand HiLink
endif

let b:current_syntax = "json"
if main_syntax == 'json'
unlet main_syntax
unlet main_syntax
endif

0 comments on commit 917d9af

Please sign in to comment.