Skip to content

Instantly share code, notes, and snippets.

@jviereck
Created March 5, 2015 03:54
Show Gist options
  • Select an option

  • Save jviereck/db92e99a1dbe342b439b to your computer and use it in GitHub Desktop.

Select an option

Save jviereck/db92e99a1dbe342b439b to your computer and use it in GitHub Desktop.
➜ acorn-babel git:(master5) ✗ diff acorn_csp.js acorn_csp_mod.js
4127a4128,4139
> function parseJSXStyle() {
> var node = startNode();
> var initialTokenStart = tokStart;
>
> while (tokType !== _jsxTagStart) { next(); }
>
> var val = input.slice(initialTokenStart, tokStart);
> node.value = val;
> node.raw = val
> return finishNode(node, "Literal");
> }
>
4156,4159c4168,4171
< children.push(parseExprAtom());
< } else
< // raise ('bailout', getQualifiedJSXName(openingElement.name));
< children.push(parseJSXExpressionContainer());
---
> children.push(parseJSXStyle());
> } else {
> children.push(parseJSXExpressionContainer());
> }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment