Skip to content

Commit

Permalink
Move function to base CSS [#237]
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed May 24, 2014
1 parent d28a9af commit f81554d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 1 addition & 7 deletions components/prism-css-extras.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,5 @@ Prism.languages.css.selector = {
Prism.languages.insertBefore('css', 'ignore', {
'hexcode': /#[\da-f]{3,6}/gi,
'entity': /\\[\da-f]{1,8}/gi,
'number': /[\d%\.]+/g,
'function': {
pattern: /[-a-z0-9]+\(/ig,
inside: {
punctuation: /\(/
}
}
'number': /[\d%\.]+/g
});
8 changes: 7 additions & 1 deletion components/prism-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ Prism.languages.css = {
'string': /("|')(\\?.)*?\1/g,
'important': /\B!important\b/gi,
'ignore': /&(lt|gt|amp);/gi,
'punctuation': /[\{\};:]/g
'punctuation': /[\{\};:]/g,
'function': {
pattern: /[-a-z0-9]+\(/ig,
inside: {
punctuation: /\(/
}
}
};

if (Prism.languages.markup) {
Expand Down

0 comments on commit f81554d

Please sign in to comment.