Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
FIameCaster committed Jan 11, 2024
1 parent edc3c53 commit 67cd84d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prism-code-editor",
"version": "2.3.2",
"version": "2.4.0",
"type": "module",
"description": "Lightweight, extensible code editor component for the web using Prism",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion package/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ for (const lang of ["clike", "css", "html", "jsx", "python", "xml", "index"])
export default defineConfig({
build: {
cssCodeSplit: true,
sourcemap: 'true',
sourcemap: true,
lib: {
entry: entries,
formats: ["es"],
Expand Down
7 changes: 3 additions & 4 deletions website/src/javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,12 @@ Prism.languages.javascript = Prism.languages.js = {
lookbehind: true,
greedy: true,
inside: {
"regex-flags": /\w+$/,
"regex-delimiter": /^\/|\/$/,
"regex-source": {
pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/,
lookbehind: true,
pattern: /[\s\S]+/,
alias: "language-regex",
},
"regex-delimiter": /^\/|\/$/,
"regex-flags": /^[a-z]+$/,
},
},
// This must be declared before keyword because we use "function" inside the look-forward
Expand Down

0 comments on commit 67cd84d

Please sign in to comment.