Skip to content

Commit

Permalink
fixed bug with hexa numbers highlighting in python
Browse files Browse the repository at this point in the history
  • Loading branch information
aviaryan committed Jun 19, 2015
1 parent f1b2e87 commit 7af9c9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/prism-python.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Prism.languages.python= {
},
'keyword' : /\b(as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|pass|print|raise|return|try|while|with|yield)\b/,
'boolean' : /\b(True|False)\b/,
'number' : /\b-?(0[box])?(?:[\da-f]+\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,
'number' : /\b-?(0[bo])?(?:(\d|0x[a-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,
'operator' : /[-+]|<=?|>=?|!|={1,2}|&{1,2}|\|?\||\?|\*|\/|~|\^|%|\b(or|and|not)\b/,
'punctuation' : /[{}[\];(),.:]/
};

0 comments on commit 7af9c9b

Please sign in to comment.