Skip to content

Commit

Permalink
Version 0.2: JSON allows strings to span multiple lines, fix this acc…
Browse files Browse the repository at this point in the history
…ordingly.
  • Loading branch information
ashemedai authored and vim-scripts committed Oct 18, 2010
1 parent 803e08b commit 85a389f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions syntax/json.vim
@@ -1,8 +1,8 @@
" Vim syntax file
" Language: JSON
" Maintainer: Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
" Last Change: 2007-07-06
" Version: 0.1
" Last Change: 2007-07-10
" Version: 0.2
" {{{1

" Syntax setup {{{2
Expand All @@ -19,8 +19,7 @@ if !exists("main_syntax")
endif

" Syntax: Strings {{{2
" TODO: Fix up string keys displaying.
syn region jsonString start=+"+ skip=+\\\\\|\\"+ end=+"\|$+ contains=jsonEscape
syn region jsonString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=jsonEscape

" Syntax: Escape sequences {{{3
syn match jsonEscape "\\["\\/bfnrt]" contained
Expand Down

0 comments on commit 85a389f

Please sign in to comment.