44## Python and Cython Syntax Highlighters ##
55## ===================================== ##
66## ##
7- ## Version: 2.0.00.049 (20141007) ##
7+ ## Version: 2.0.00.052 (20141007) ##
88## File: src/convert.py ##
99## ##
1010## For more information about the project, please visit ##
@@ -139,7 +139,7 @@ def __init__(self, name,
139139
140140 #- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
141141 # TODO: Add "Automatically Generated, Don't Change" label to files
142- def write (self , kind ):
142+ def write (self , kind , extension ):
143143 # If write comments-tmpreferences too
144144 comments = self ._comments
145145 if comments :
@@ -153,7 +153,7 @@ def write(self, kind):
153153 real_path = expanduser (file_path )
154154 makedirs (real_path , exist_ok = True )
155155 # Create full path to file
156- full_path = join (real_path , file_name + LANG_EXT )
156+ full_path = join (real_path , file_name + extension )
157157 # Write out the property-list file
158158 with open (full_path , 'w+b' ) as file :
159159 plistlib .writePlist (definition , file )
@@ -199,7 +199,7 @@ def from_dict(self, definition):
199199 #- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
200200 def write (self ):
201201 # Call parent's method
202- super ().write ('Syntax' )
202+ super ().write ('Syntax' , LANG_EXT )
203203
204204
205205
@@ -224,7 +224,7 @@ def from_dict(self, definition):
224224 #- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
225225 def write (self , css = False ):
226226 # Call parent's method
227- super ().write ('Style' )
227+ super ().write ('Style' , THEME_EXT )
228228 # If CSS output needed
229229 if css :
230230 pass
0 commit comments