aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsmihica <smihica@gmail.com>2014-06-11 10:25:28 +0900
committersmihica <smihica@gmail.com>2014-06-11 10:25:28 +0900
commite35df00ff39817254bdb8001abac32c7f42581ec (patch)
treeea4a558672f3a8f598cf33c6558b97477fc632f3
parent9732e2246ff452bde02e24736475fc280393f811 (diff)
downloademmet-mode-e35df00ff39817254bdb8001abac32c7f42581ec.tar.lz
emmet-mode-e35df00ff39817254bdb8001abac32c7f42581ec.tar.xz
emmet-mode-e35df00ff39817254bdb8001abac32c7f42581ec.zip
Fixed that compiled files change every compile because of json2hash.
-rwxr-xr-xtools/json2hash4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/json2hash b/tools/json2hash
index ce7ee58..2ac6cdd 100755
--- a/tools/json2hash
+++ b/tools/json2hash
@@ -14,6 +14,8 @@ if python2:
if python3:
from io import StringIO
+
+
class ApplicationException(Exception):
pass
@@ -31,7 +33,7 @@ class Processor(object):
_type = type(data)
if _type is dict:
self.out.write('(let ((tbl (make-hash-table :test \'equal)))\n')
- for k, v in data.items():
+ for k, v in sorted(data.items(), key=lambda x: x[0]):
self.out.write('(puthash ')
self.out.write(pystr2elstrexp(k))
self.out.write(' ')