Skip to content

Commit

Permalink
JSON Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CupOfTea696 committed Dec 29, 2015
1 parent db367b0 commit ad2fcd0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion components.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ var components = {
"json": {
"title": "JSON",
"option": "default",
"owner": "CupOfTea696"
"owner": "CupOfTea696"
},
"julia": {
"title": "Julia",
Expand Down
10 changes: 2 additions & 8 deletions components/prism-json.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
Prism.languages.json = {
'property': /"(\b|\B)[\w-]+"(?=\s*:)/ig,
'string': /"(?!:)(\\?[^'"])*?"(?!:)/g,
'property': /".*?"(?=\s*:)/ig,
'string': /"(?!:)(\\?[^"])*?"(?!:)/g,
'number': /\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?)\b/g,
'function': {
pattern: /[a-z0-9_]+\(/ig,
inside: {
punctuation: /\(/
}
},
'punctuation': /[{}[\]);,]/g,
'operator': /:/g,
'boolean': /\b(true|false)\b/gi,
Expand Down
3 changes: 1 addition & 2 deletions 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 ad2fcd0

Please sign in to comment.