Skip to content

Commit

Permalink
QML: Made string greedy (#3250)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment authored Dec 10, 2021
1 parent 5ee8c55 commit 1e6dcb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion components/prism-qml.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@
alias: 'language-javascript',
inside: Prism.languages.javascript
},
'string': /"(?:\\.|[^\\"\r\n])*"/,
'string': {
pattern: /"(?:\\.|[^\\"\r\n])*"/,
greedy: true
},
'keyword': /\b(?:as|import|on)\b/,
'punctuation': /[{}[\]:;,]/
};
Expand Down
2 changes: 1 addition & 1 deletion components/prism-qml.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1e6dcb5

Please sign in to comment.