Skip to content

Commit

Permalink
Markup: highlight single quotes in attr-value as punctuation
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Jul 8, 2015
1 parent bf8e032 commit 1ebcb8e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/prism-markup.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Prism.languages.markup = {
'attr-value': {
pattern: /=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,
inside: {
'punctuation': /=|>|"/
'punctuation': /[=>"']/
}
},
'punctuation': /\/?>/,
Expand Down
2 changes: 1 addition & 1 deletion components/prism-markup.min.js

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

2 changes: 1 addition & 1 deletion prism.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ Prism.languages.markup = {
'attr-value': {
pattern: /=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,
inside: {
'punctuation': /=|>|"/
'punctuation': /[=>"']/
}
},
'punctuation': /\/?>/,
Expand Down

0 comments on commit 1ebcb8e

Please sign in to comment.