Skip to content

Commit 1e6dcb5

Browse files
authoredDec 10, 2021
QML: Made string greedy (#3250)
1 parent 5ee8c55 commit 1e6dcb5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
 

‎components/prism-qml.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050
alias: 'language-javascript',
5151
inside: Prism.languages.javascript
5252
},
53-
'string': /"(?:\\.|[^\\"\r\n])*"/,
53+
'string': {
54+
pattern: /"(?:\\.|[^\\"\r\n])*"/,
55+
greedy: true
56+
},
5457
'keyword': /\b(?:as|import|on)\b/,
5558
'punctuation': /[{}[\]:;,]/
5659
};

‎components/prism-qml.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.