Skip to content

Commit

Permalink
C-like: Allow '+' in exponents.
Browse files Browse the repository at this point in the history
  • Loading branch information
rygorous committed Jul 26, 2013
1 parent 2aeed5c commit a418b1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/prism-clike.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Prism.languages.clike = {
punctuation: /\(/
}
},
'number': /\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?)\b/g,
'number': /\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee][+-]?\d+)?)\b/g,
'operator': /[-+]{1,2}|!|<=?|>=?|={1,3}|(&){1,2}|\|?\||\?|\*|\/|\~|\^|\%/g,
'ignore': /&(lt|gt|amp);/gi,
'punctuation': /[{}[\];(),.:]/g
};
};
2 changes: 1 addition & 1 deletion components/prism-clike.min.js

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

0 comments on commit a418b1a

Please sign in to comment.