Skip to content

Commit

Permalink
Markup: Added attr-equals alias for the attribute = sign (#2350)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed May 18, 2020
1 parent 81cf234 commit 96a0116
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions components/prism-markup.js
Expand Up @@ -21,11 +21,11 @@ Prism.languages.markup = {
pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
inside: {
'punctuation': [
/^=/,
{
pattern: /^(\s*)["']|["']$/,
lookbehind: true
}
pattern: /^=/,
alias: 'attr-equals'
},
/"|'/
]
}
},
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.

8 changes: 4 additions & 4 deletions prism.js
Expand Up @@ -757,11 +757,11 @@ Prism.languages.markup = {
pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,
inside: {
'punctuation': [
/^=/,
{
pattern: /^(\s*)["']|["']$/,
lookbehind: true
}
pattern: /^=/,
alias: 'attr-equals'
},
/"|'/
]
}
},
Expand Down

0 comments on commit 96a0116

Please sign in to comment.