Skip to content

Commit

Permalink
fix string regex and remove greedy from comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaz1502 committed Feb 5, 2024
1 parent 48f64bb commit c1943f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/prism-lean.js
Expand Up @@ -16,7 +16,6 @@
// OK
'comment': {
pattern: /(?:\/--[\s\S]*?-\/)|(?:\/-![\s\S]*?-\/)|(?:\/-[\s\S]*?-\/)|--.*$/m,
greedy: true
},

'keyword': [
Expand Down Expand Up @@ -45,7 +44,7 @@

'string': [
/"[^"]*"/,
/'[^']*'/
/'[^']'/
],

'quotation': {
Expand Down

0 comments on commit c1943f7

Please sign in to comment.