diff --git a/package/patches/prismjs@1.29.0.patch b/package/patches/prismjs@1.29.0.patch index 97ab1cbc..5dc8e333 100644 --- a/package/patches/prismjs@1.29.0.patch +++ b/package/patches/prismjs@1.29.0.patch @@ -5375,10 +5375,10 @@ index 690fe7b56df7a59546bd030640287e915dee53ee..8dd362caf312bbf698e8e74d6a16e30d }, diff --git a/components/prism-jsx.js b/components/prism-jsx.js -index ac6c2d64243ac329e7c8a159cdebf5b37eff6a4e..a9c9125a350586188b74150c63734086c604f289 100644 +index ac6c2d64243ac329e7c8a159cdebf5b37eff6a4e..11b79cee936c3dcaf92e06dbb25bd7a06e5b7048 100644 --- a/components/prism-jsx.js +++ b/components/prism-jsx.js -@@ -1,145 +1,128 @@ +@@ -1,145 +1,127 @@ (function (Prism) { - var javascript = Prism.util.clone(Prism.languages.javascript); @@ -5394,8 +5394,9 @@ index ac6c2d64243ac329e7c8a159cdebf5b37eff6a4e..a9c9125a350586188b74150c63734086 + var spread = /(?:\{*\.{3}(?:[^{}]|)*\})/; /** - * @param {string} source - * @param {string} [flags] +- * @param {string} source +- * @param {string} [flags] ++ * @param {RegExp} pattern */ - function re(source, flags) { - source = source @@ -5434,7 +5435,8 @@ index ac6c2d64243ac329e7c8a159cdebf5b37eff6a4e..a9c9125a350586188b74150c63734086 + delete jsx.script; + delete jsx['markup-bracket']; - Prism.languages.insertBefore('inside', 'attr-name', { +- Prism.languages.insertBefore('inside', 'attr-name', { ++ Prism.languages.insertBefore('inside', 'punctuation', { 'spread': { - pattern: re(//.source), - inside: Prism.languages.jsx @@ -5449,7 +5451,7 @@ index ac6c2d64243ac329e7c8a159cdebf5b37eff6a4e..a9c9125a350586188b74150c63734086 // Allow for two levels of nesting - pattern: re(/=/.source), - alias: 'language-javascript', -+ pattern: re(/=/), ++ pattern: re(/=\s*/), + alias: 'language-jsx', inside: { 'script-punctuation': { diff --git a/package/pnpm-lock.yaml b/package/pnpm-lock.yaml index 590545c3..ba515058 100644 --- a/package/pnpm-lock.yaml +++ b/package/pnpm-lock.yaml @@ -6,7 +6,7 @@ settings: patchedDependencies: prismjs@1.29.0: - hash: ntrm66tgk2nrowuj2x7zqunm7e + hash: bysryy6m3uqfmdvm63irvjt22m path: patches/prismjs@1.29.0.patch dependencies: @@ -17,7 +17,7 @@ dependencies: devDependencies: prismjs: specifier: ^1.29.0 - version: 1.29.0(patch_hash=ntrm66tgk2nrowuj2x7zqunm7e) + version: 1.29.0(patch_hash=bysryy6m3uqfmdvm63irvjt22m) typedoc: specifier: ^0.25.1 version: 0.25.1(typescript@5.1.6) @@ -839,7 +839,7 @@ packages: source-map-js: 1.0.2 dev: true - /prismjs@1.29.0(patch_hash=ntrm66tgk2nrowuj2x7zqunm7e): + /prismjs@1.29.0(patch_hash=bysryy6m3uqfmdvm63irvjt22m): resolution: {integrity: sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==} engines: {node: '>=6'} dev: true