Allow use react elements after yield statement

This commit is contained in:
Yiyuan Bai
2016-05-12 18:41:41 +08:00
parent 21c4b4d779
commit de56e12c68
3 changed files with 202 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ tc.j_expr = new TokContext("<tag>...</tag>", true, true);
tt.jsxName = new TokenType("jsxName");
tt.jsxText = new TokenType("jsxText", { beforeExpr: true });
tt.jsxTagStart = new TokenType("jsxTagStart");
tt.jsxTagStart = new TokenType("jsxTagStart", { startsExpr: true });
tt.jsxTagEnd = new TokenType("jsxTagEnd");
tt.jsxTagStart.updateContext = function() {