aboutsummaryrefslogtreecommitdiffstats
path: root/tools/json2hash
diff options
context:
space:
mode:
authorsmihica <smihica@gmail.com>2013-05-15 00:41:05 +0900
committersmihica <smihica@gmail.com>2013-05-15 00:41:05 +0900
commita93996e0bf718d79d50b0becdf0469b1715d998b (patch)
treeafe0601cbd37ef8ed9ab483748b6a0f8ba2bfe0d /tools/json2hash
parent976449a2d5e28b731e848aa22dab38a05a39ecc1 (diff)
downloademmet-mode-a93996e0bf718d79d50b0becdf0469b1715d998b.tar.lz
emmet-mode-a93996e0bf718d79d50b0becdf0469b1715d998b.tar.xz
emmet-mode-a93996e0bf718d79d50b0becdf0469b1715d998b.zip
Supporting HTML-Snippents phase1: Cleaned config-file and Supported html default attributes.
Diffstat (limited to 'tools/json2hash')
-rwxr-xr-xtools/json2hash2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/json2hash b/tools/json2hash
index 0accbcd..8dbe9ae 100755
--- a/tools/json2hash
+++ b/tools/json2hash
@@ -37,6 +37,8 @@ class Processor(object):
self._print(v)
self.out.write('\n')
self.out.write(')\n')
+ elif _type is bool:
+ self.out.write('t' if data else 'nil')
elif (_type is str or _type is unicode):
self.out.write(pystr2elstrexp(data))
else: # number ?