Skip to content

Commit

Permalink
JSON numbers in string fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CupOfTea696 committed May 27, 2015
1 parent 8e0853c commit db367b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/prism-json.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Prism.languages.json = {
'property': /"(\b|\B)[\w-]+"(?=\s*:)/ig,
'number': /\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?)\b/g,
'string': /"(?!:)(\\?[^'"])*?"(?!:)/g,
'number': /\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?)\b/g,
'function': {
pattern: /[a-z0-9_]+\(/ig,
inside: {
Expand Down
3 changes: 2 additions & 1 deletion components/prism-json.min.js

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

0 comments on commit db367b0

Please sign in to comment.