src/eric7/Preferences/HighlightingStylesFile.py

branch
eric7
changeset 10459
5c5ed40d533d
parent 10439
21c28b0f9e41
child 11090
f5f5f5803935
equal deleted inserted replaced
10458:2074b8393649 10459:5c5ed40d533d
80 } 80 }
81 ) 81 )
82 stylesDict["lexers"].append(lexerDict) 82 stylesDict["lexers"].append(lexerDict)
83 83
84 try: 84 try:
85 jsonString = json.dumps(stylesDict, indent=2) 85 jsonString = json.dumps(stylesDict, indent=2) + "\n"
86 with open(filename, "w") as f: 86 with open(filename, "w") as f:
87 f.write(jsonString) 87 f.write(jsonString)
88 except (OSError, TypeError) as err: 88 except (OSError, TypeError) as err:
89 with EricOverridenCursor(): 89 with EricOverridenCursor():
90 EricMessageBox.critical( 90 EricMessageBox.critical(

eric ide

mercurial