Switch jsx provider to amadeus, closes #364

This commit is contained in:
Adam Stankiewicz
2019-03-04 10:46:19 +01:00
parent 4f0bde6d67
commit 2c59360e01
6 changed files with 406 additions and 20 deletions

View File

@@ -62,6 +62,20 @@ syn region jsxRegion
\ keepend
\ extend
" Shorthand fragment support
"
" Note that since the main jsxRegion contains @XMLSyntax, we cannot simply
" adjust the regex above since @XMLSyntax will highlight the opening `<` as an
" XMLError. Instead we create a new group with the same name that does not
" include @XMLSyntax and instead uses matchgroup to get the same highlighting.
syn region jsxRegion
\ contains=@Spell,jsxRegion,jsxChild,jsBlock,javascriptBlock
\ matchgroup=xmlTag
\ start=/<>/
\ end=/<\/>/
\ keepend
\ extend
" Add jsxRegion to the lowest-level JS syntax cluster.
syn cluster jsExpression add=jsxRegion