Skip to content

Commit 1ebcb8e

Browse files
committed
Markup: highlight single quotes in attr-value as punctuation
1 parent bf8e032 commit 1ebcb8e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

components/prism-markup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Prism.languages.markup = {
1616
'attr-value': {
1717
pattern: /=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,
1818
inside: {
19-
'punctuation': /=|>|"/
19+
'punctuation': /[=>"']/
2020
}
2121
},
2222
'punctuation': /\/?>/,

components/prism-markup.min.js

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

prism.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ Prism.languages.markup = {
453453
'attr-value': {
454454
pattern: /=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,
455455
inside: {
456-
'punctuation': /=|>|"/
456+
'punctuation': /[=>"']/
457457
}
458458
},
459459
'punctuation': /\/?>/,

0 commit comments

Comments
 (0)