Expect formatted json as input, blue numbers
This patch avoid coloring what's inside item's strings, but expect a formatted input.
This commit is contained in:
parent
d04a9d85a9
commit
1fed20cba7
1 changed files with 6 additions and 2 deletions
|
|
@ -1,8 +1,12 @@
|
|||
|
||||
def theme():
|
||||
# This theme expect a formatted JSON input, with items spread across lines.
|
||||
# See tools like "python -m json.tool" or "json_xs"
|
||||
return [
|
||||
[ '[][{}]' ],
|
||||
[ '[:,]', "yellow" ],
|
||||
[ '[\[\]{}],*\s*\n' ],
|
||||
[ '" (:) ', "yellow" ],
|
||||
[ '[\]}"](,)', "yellow" ],
|
||||
[ "\"(-*[0-9]+\.*[0-9]*e*-*[0-9]*)\"", "blue" ],
|
||||
[ '"(.*)"', "green" ],
|
||||
[ """["']""", "cyan" ]
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue