1 line
4.0 KiB
JSON
1 line
4.0 KiB
JSON
|
{"ast":null,"code":"(function (Prism) {\n var javascript = Prism.util.clone(Prism.languages.javascript);\n Prism.languages.jsx = Prism.languages.extend('markup', javascript);\n Prism.languages.jsx.tag.pattern = /<\\/?[\\w.:-]+\\s*(?:\\s+(?:[\\w.:-]+(?:=(?:(\"|')(?:\\\\[\\s\\S]|(?!\\1)[^\\\\])*\\1|[^\\s'\">=]+|(?:\\{\\{?[^}]*\\}?\\})))?|\\{\\.{3}[a-z_$][\\w$]*(?:\\.[a-z_$][\\w$]*)*\\}))*\\s*\\/?>/i;\n Prism.languages.jsx.tag.inside['attr-value'].pattern = /=(?!\\{)(?:(\"|')(?:\\\\[\\s\\S]|(?!\\1)[^\\\\])*\\1|[^\\s'\">]+)/i;\n Prism.languages.insertBefore('inside', 'attr-name', {\n 'spread': {\n pattern: /\\{\\.{3}[a-z_$][\\w$]*(?:\\.[a-z_$][\\w$]*)*\\}/,\n inside: {\n 'punctuation': /\\.{3}|[{}.]/,\n 'attr-value': /\\w+/\n }\n }\n }, Prism.languages.jsx.tag);\n var jsxExpression = Prism.util.clone(Prism.languages.jsx);\n delete jsxExpression.punctuation;\n jsxExpression = Prism.languages.insertBefore('jsx', 'operator', {\n 'punctuation': /=(?={)|[{}[\\];(),.:]/\n }, {\n jsx: jsxExpression\n });\n Prism.languages.insertBefore('inside', 'attr-value', {\n 'script': {\n // Allow for one level of nesting\n pattern: /=(\\{(?:\\{[^}]*\\}|[^}])+\\})/i,\n inside: jsxExpression,\n 'alias': 'language-javascript'\n }\n }, Prism.languages.jsx.tag);\n})(Prism);","map":{"version":3,"names":["Prism","javascript","util","clone","languages","jsx","extend","tag","pattern","inside","insertBefore","jsxExpression","punctuation"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/prismjs/components/prism-jsx.js"],"sourcesContent":["(function(Prism) {\n\nvar javascript = Prism.util.clone(Prism.languages.javascript);\n\nPrism.languages.jsx = Prism.languages.extend('markup', javascript);\nPrism.languages.jsx.tag.pattern= /<\\/?[\\w.:-]+\\s*(?:\\s+(?:[\\w.:-]+(?:=(?:(\"|')(?:\\\\[\\s\\S]|(?!\\1)[^\\\\])*\\1|[^\\s'\">=]+|(?:\\{\\{?[^}]*\\}?\\})))?|\\{\\.{3}[a-z_$][\\w$]*(?:\\.[a-z_$][\\w$]*)*\\}))*\\s*\\/?>/i;\n\nPrism.languages.jsx.tag.inside['attr-value'].pattern = /=(?!\\{)(?:(\"|')(?:\\\\[\\s\\S]|(?!\\1)[^\\\\])*\\1|[^\\s'\">]+)/i;\n\nPrism.languages.insertBefore('inside', 'attr-name', {\n\t'spread': {\n\t\tpattern: /\\{\\.{3}[a-z_$][\\w$]*(?:\\.[a-z_$][\\w$]*)*\\}/,\n\t\tinside: {\n\t\t\t'punctuation': /\\.{3}|[{}.]/,\n\t\t\t'attr-value': /\\w+/\n\t\t}\n\t}\n}, Prism.languages.jsx.tag);\n\nvar jsxExpression = Prism.util.clone(Prism.languages.jsx);\n\ndelete jsxExpression.punctuation;\n\njsxExpression = Prism.languages.insertBefore('jsx', 'operator', {\n 'punctuation': /=(?={)|[{}[\\];(),.:]/\n}, { jsx: jsxExpression });\n\nPrism.languages.insertBefore('inside', 'attr-value',{\n\t'script': {\n\t\t// Allow for one level of nesting\n\t\tpattern: /=(\\{(?:\\{[^}]*\\}|[^}])+\\})/i,\n\t\tinside: jsxExpression,\n\t\t'alias': 'language-javascript'\n\t}\n}, Prism.languages.jsx.tag);\n\n}(Prism));\n"],"mappings":"AAAC,WAASA,KAAT,EAAgB;EAEjB,IAAIC,UAAU,GAAGD,KAAK,CAACE,IAAN,CAAWC,KAAX,CAAiBH,KAAK,CAACI,SAAN,CAAgBH,UAAjC,CAAjB;EAEAD,KAAK,CAACI,SAAN,CAAgBC,GAAhB,GAAsBL,KAAK,CAACI,SAAN,CAAgBE,MAAhB,CAAuB,QAAvB,EAAiCL,UAAjC,CAAtB;EACA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