subtleGradient / language-javascript-jsx

JavaScript with JSX Bundle for Atom
45 stars 6 forks source link

Curly brackets within string tags formatted as non-strings #44

Open lumotroph opened 7 years ago

lumotroph commented 7 years ago

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.