From 6045d52a152fbc92588b18c394c2a0f4e3c9a293 Mon Sep 17 00:00:00 2001 From: "Braden M. Kelley" Date: Sun, 18 Mar 2018 19:01:25 -0700 Subject: [PATCH] fix curly brace matching fixes #146 --- after/syntax/jsx.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/after/syntax/jsx.vim b/after/syntax/jsx.vim index 21c68dc..d381bb4 100644 --- a/after/syntax/jsx.vim +++ b/after/syntax/jsx.vim @@ -30,13 +30,13 @@ endif " - othree/yajs.vim: javascriptNoReserved -" JSX attributes should color as JS. Note the trivial end pattern; we let -" jsBlock take care of ending the region. -syn region xmlString contained start=+{+ end=++ contains=jsBlock,javascriptBlock +" JSX attributes should color as JS. +syn region xmlString contained start=+{+ end=+}+ contains=jsBlock,javascriptBlock " JSX child blocks behave just like JSX attributes, except that (a) they are " syntactically distinct, and (b) they need the syn-extend argument, or else -" nested XML end-tag patterns may end the outer jsxRegion. +" nested XML end-tag patterns may end the outer jsxRegion. Note the trivial +" end pattern; we let jsBlock take care of ending the region. syn region jsxChild contained start=+{+ end=++ contains=jsBlock,javascriptBlock \ extend