language-javascript-jsx icon indicating copy to clipboard operation
language-javascript-jsx copied to clipboard

Curly brackets within string tags formatted as non-strings

Open lumotroph opened this issue 8 years ago • 0 comments

Within a component, writing a property which contains curly braces inside a string produces formatting that does not suggest that the string will come out like it does.

image

The code <input id='CardNumber' pattern='[0-9]{13,16}' /> is valid syntax and is compiled naturally by Babel. As such, I think the formatting should reflect this.

lumotroph avatar Sep 28 '17 09:09 lumotroph