Open cosven opened 6 years ago
Is multi-line text part of the JSX spec?
I guess it is part of the spec since multiline text works in JSX, but I really don't know much about JSX spec.
Looks like should be supported: https://github.com/RReverser/acorn-jsx/issues/16
Hitting this bug right now, how would one go about fixing it?
It would be updating rjsx-parse-single-attr
to use a custom string parser for attribute values instead of relying on (js2-match-token js2-STRING)
as it currently does.
I was trying to look at how js2-mode
parses multi-line strings but I couldn't figure it out
https://github.com/mooz/js2-mode/blob/master/js2-mode.el#L3761
Found that code for string literals but it's confusing u_u
js2-jsx-mode (multiline):
rjsx-mode (multiline):
rjsx-mode (one line):
vscode (multiline):