ColorHighlight is not liable against some type of JSON formatting. It will fail if it uses.sublime-color-scheme file that has been formatted with jsformatter or some sort of custom formatting before, means: "rules": [{ fail... also "rules": [ { fail too...
Solution:
in colorizer.py#L217 change from:
m = re.search(r'([\t ]*)"rules":\s*\[[\r\n]+', content)
to:
m = re.search(r'([\t ]*)"rules":\s*\[+', content)
Its much safer for all kind of .sublime-color-scheme formattings.
ColorHighlight is not liable against some type of JSON formatting. It will fail if it uses
.sublime-color-scheme
file that has been formatted with jsformatter or some sort of custom formatting before, means:"rules": [{ fail...
also"rules": [ { fail too...
Solution: in colorizer.py#L217 change from:
m = re.search(r'([\t ]*)"rules":\s*\[[\r\n]+', content)
to:m = re.search(r'([\t ]*)"rules":\s*\[+', content)
Its much safer for all kind of
.sublime-color-scheme
formattings.