summaryrefslogtreecommitdiffstats
path: root/after/syntax
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2015-10-18 16:07:12 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2015-10-18 16:07:12 +0200
commitae882e85f81869dbf81b5c888c337aa4481fc8c3 (patch)
tree0b9ad026b7927b1a6941b315504a65057e8281b1 /after/syntax
parentaec5e42bdbdb24bc816ae7a56ace189246c74097 (diff)
downloadvim-polyglot-ae882e85f81869dbf81b5c888c337aa4481fc8c3.tar.gz
vim-polyglot-ae882e85f81869dbf81b5c888c337aa4481fc8c3.zip
Update
Diffstat (limited to 'after/syntax')
-rw-r--r--after/syntax/jsx.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/after/syntax/jsx.vim b/after/syntax/jsx.vim
index ff3c907e..7efb05bd 100644
--- a/after/syntax/jsx.vim
+++ b/after/syntax/jsx.vim
@@ -44,4 +44,8 @@ syn region xmlString contained start=+{+ end=++ contains=jsBlock,javascriptBlock
" Add jsxRegion to the lowest-level JS syntax cluster.
syn cluster jsExpression add=jsxRegion
+" Allow jsxRegion to contain reserved words.
+" See: https://github.com/othree/yajs.vim
+syn cluster javascriptNoReserved add=jsxRegion
+
endif