You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then, in the interest of not treating JS code as JSX code too eagerly, and in staying consistent with the behavior of the child js-mode, js2-mode could hinge its support of parsing and handling JSX code on the detection of the use of JSX in the code.
Actually, the detection logic will already be inherited by the body of the js-mode function, so some of that work is already done. This issue proposes that we finish the job by making the following changes:
Add (js-use-syntactic-mode-name) to the body of the js2-mode function (originally proposed here), so that the state of JSX support is made apparent to the user
If, for the sake of Emacs 27 users,
then, in the interest of not treating JS code as JSX code too eagerly, and in staying consistent with the behavior of the child js-mode, js2-mode could hinge its support of parsing and handling JSX code on the detection of the use of JSX in the code.
Actually, the detection logic will already be inherited by the body of the js-mode function, so some of that work is already done. This issue proposes that we finish the job by making the following changes:
(js-use-syntactic-mode-name)
to the body of the js2-mode function (originally proposed here), so that the state of JSX support is made apparent to the userThe text was updated successfully, but these errors were encountered: