@@ -113,19 +113,50 @@ contexts:
113113 - meta_include_prototype : false
114114 - meta_scope : meta.interpolation.markdown
115115 - meta_content_scope : source.jsx.embedded.markdown
116- - include : jsx-interpolation-body
116+ - include : jsx-interpolation-plain- body
117117
118118 jsx-interpolations :
119+ - match : (?={/\*)
120+ branch_point : jsx-interpolation-comment
121+ branch :
122+ - jsx-interpolation-comment
123+ - jsx-interpolation-plain
124+ - match : (?={)
125+ push : jsx-interpolation-plain
126+
127+ jsx-interpolation-comment :
128+ - meta_include_prototype : false
129+ - match : ({)(/\*)
130+ captures :
131+ 1 : punctuation.section.interpolation.begin.markdown
132+ 2 : punctuation.definition.comment.begin.js
133+ set : jsx-interpolation-comment-body
134+
135+ jsx-interpolation-comment-body :
136+ - meta_include_prototype : false
137+ - meta_scope : meta.interpolation.markdown comment.block.js
138+ - match : (\*/)(})
139+ captures :
140+ 1 : punctuation.definition.comment.end.js
141+ 2 : punctuation.section.interpolation.end.markdown
142+ pop : 1
143+ - match : (?=\*/)
144+ fail : jsx-interpolation-comment
145+
146+ jsx-interpolation-plain :
147+ - meta_include_prototype : false
119148 - match : \{
120149 scope : punctuation.section.interpolation.begin.markdown
121- push : jsx-interpolation-body
150+ set : jsx-interpolation-plain -body
122151
123- jsx-interpolation-body :
152+ jsx-interpolation-plain- body :
124153 - meta_include_prototype : false
125154 - meta_scope : meta.interpolation.markdown
126155 - meta_content_scope : source.jsx.embedded.markdown
127156 - match : \}
128157 scope : punctuation.section.interpolation.end.markdown
129158 pop : 1
130- - include : scope:source.jsx#script
131- apply_prototype : true
159+ - match : (?=\S)
160+ push :
161+ - scope:source.jsx#expression-end
162+ - scope:source.jsx#expression-begin
0 commit comments