| Index: lib/src/prism/components/prism-jsx.js
|
| diff --git a/lib/src/prism/components/prism-jsx.js b/lib/src/prism/components/prism-jsx.js
|
| index 10c5f097bcd4cf28d36f28f97f09d6d9c4bb339e..a777484f64f1c0a259dffb4e8e573af801e65c49 100644
|
| --- a/lib/src/prism/components/prism-jsx.js
|
| +++ b/lib/src/prism/components/prism-jsx.js
|
| @@ -9,7 +9,8 @@ Prism.languages.jsx.tag.inside['attr-value'].pattern = /=[^\{](?:('|")[\w\W]*?(\
|
|
|
| Prism.languages.insertBefore('inside', 'attr-value',{
|
| 'script': {
|
| - pattern: /=(\{[\w\W]*?\})/i,
|
| + // Allow for one level of nesting
|
| + pattern: /=(\{(?:\{[^}]*\}|[^}])+\})/i,
|
| inside: {
|
| 'function' : Prism.languages.javascript.function,
|
| 'punctuation': /[={}[\];(),.:]/,
|
|
|