Skip to content

Commit

Permalink
CSS: Highlight parentheses as punctuation
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Jul 8, 2015
1 parent eef4248 commit cd0273e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/prism-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Prism.languages.css = {
'string': /("|')(\\\n|\\?.)*?\1/,
'property': /(\b|\B)[\w-]+(?=\s*:)/i,
'important': /\B!important\b/i,
'punctuation': /[\{\};:]/,
'function': /[-a-z0-9]+(?=\()/i
'function': /[-a-z0-9]+(?=\()/i,
'punctuation': /[(){};:]/
};

if (Prism.languages.markup) {
Expand Down
2 changes: 1 addition & 1 deletion components/prism-css.min.js

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

4 changes: 2 additions & 2 deletions prism.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,8 @@ Prism.languages.css = {
'string': /("|')(\\\n|\\?.)*?\1/,
'property': /(\b|\B)[\w-]+(?=\s*:)/i,
'important': /\B!important\b/i,
'punctuation': /[\{\};:]/,
'function': /[-a-z0-9]+(?=\()/i
'function': /[-a-z0-9]+(?=\()/i,
'punctuation': /[(){};:]/
};

if (Prism.languages.markup) {
Expand Down

0 comments on commit cd0273e

Please sign in to comment.