Skip to content

Commit

Permalink
support empty interpolation JSXChild production
Browse files Browse the repository at this point in the history
fixes #16

```
JSXChild :
  JSXText
  JSXElement
  { AssignmentExpression _opt_ }
```
  • Loading branch information
bathos committed Dec 13, 2016
1 parent 6be6ebf commit d1b9b92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecmascript.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -4982,7 +4982,7 @@ contexts:
scope: string.text.jsx
- match: '\{'
scope: punctuation.definition.attribute.begin.jsx
set: [ ae_JSX_CONTENT_INTERPOLATION_END, assignmentExpression ]
set: ae_JSX_CONTENT_INTERPOLATION_END
- match: '<(?!\/)'
scope: punctuation.definition.tag.begin.jsx
push: ae_JSX_ELEMENT
Expand All @@ -4993,7 +4993,7 @@ contexts:
- match: '\}'
scope: punctuation.definition.interpolation.end.jsx
set: ae_JSX_CONTENT
- include: other_illegal
- include: assignmentExpression

ae_JSX_ELEMENT:
- match: '(({{jsxIdentifer}})(:){{jsxIdentifer}})'
Expand Down

0 comments on commit d1b9b92

Please sign in to comment.