Skip to content
This repository was archived by the owner on Feb 20, 2022. It is now read-only.

Commit 65d7708

Browse files
committed
fix #22 and deprecated (3.4) plistlib calls updated
1 parent 76eda03 commit 65d7708

6 files changed

Lines changed: 59 additions & 63 deletions

File tree

TODO

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Python and Cython Syntax Highlighters ##
44
## ===================================== ##
55
## ##
6-
## Version: 2.0.00.062 (20141007) ##
6+
## Version: 2.0.00.069 (20141007) ##
77
## File: TODO ##
88
## ##
99
## For more information about the project, please visit ##
@@ -44,95 +44,95 @@ TODO:
4444

4545
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
4646
# 3
47-
- file: src/common.py
48-
line: 588
49-
note: |
50-
rearrange -> what is magic function and what is magic variable?
51-
52-
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
53-
# 4
54-
- file: src/common.py
55-
line: 618
56-
note: |
57-
decide if source.sql and special words, like SELECT and INSERT needed
58-
59-
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
60-
# 5
61-
- file: src/convert.py
62-
line: 141
63-
note: |
64-
Add "Automatically Generated, Don't Change" label to files
65-
66-
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
67-
# 6
6847
- file: src/cython.py
6948
line: 138
7049
note: |
7150
highlight type declarations in functions!
7251
Function name
7352

7453
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
75-
# 7
54+
# 4
7655
- file: src/cython.py
7756
line: 155
7857
note: |
7958
add illegal
8059

8160
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
82-
# 8
61+
# 5
8362
- file: src/cython.py
8463
line: 227
8564
note: |
8665
rearrange -> what is builtin function and what is builtin type?
8766

8867
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
89-
# 9
68+
# 6
9069
- file: src/cython.py
9170
line: 287
9271
note: |
9372
rearrange -> what is magic function and what is magic variable?
9473

9574
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
96-
# 10
75+
# 7
9776
- file: src/python.py
9877
line: 135
9978
note: |
10079
add illegal
10180

10281
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
103-
# 11
82+
# 8
10483
- file: src/python.py
10584
line: 198
10685
note: |
10786
rearrange -> what is builtin function and what is builtin type?
10887

10988
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
110-
# 12
89+
# 9
11190
- file: src/python.py
11291
line: 246
11392
note: |
11493
rearrange -> what is magic function and what is magic variable?
11594

95+
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
96+
# 10
97+
- file: src/convert.py
98+
line: 141
99+
note: |
100+
Add "Automatically Generated, Don't Change" label to files
101+
102+
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
103+
# 11
104+
- file: src/common.py
105+
line: 584
106+
note: |
107+
rearrange -> what is magic function and what is magic variable?
108+
109+
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
110+
# 12
111+
- file: src/common.py
112+
line: 614
113+
note: |
114+
decide if source.sql and special words, like SELECT and INSERT needed
115+
116116

117117

118118
#----------------------------- 2 POSTS IN 2 FILES -----------------------------#
119119
NOTE:
120120
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
121121
# 1
122+
- file: build.py
123+
line: 84
124+
note: |
125+
Old path to theme files => DO NOT SUPPORT IT:
126+
'~/Library/Application Support/Sublime Text 3/Packages/Color Scheme - Default'
127+
128+
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
129+
# 2
122130
- file: src/common.py
123-
line: 865
131+
line: 861
124132
note: |
125133
the problem of making this to be a begin/end block
126134
is that the patterns needs to include the multiline-
127135
comments only if the expression is in multline
128136
quotes otherwise it should be exclude it...
129137

130-
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
131-
# 2
132-
- file: build.py
133-
line: 84
134-
note: |
135-
Old path to theme files => DO NOT SUPPORT IT:
136-
'~/Library/Application Support/Sublime Text 3/Packages/Color Scheme - Default'
137-
138138

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.00.062 (20141007)
1+
2.0.00.069 (20141007)

langs/Cython.tmLanguage

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -426,18 +426,18 @@
426426
</dict>
427427
<dict>
428428
<key>begin</key>
429-
<string>{</string>
429+
<string>\{</string>
430430
<key>end</key>
431-
<string>}</string>
431+
<string>\}</string>
432432
<key>name</key>
433433
<string>meta.structure.dictionary.cython</string>
434434
<key>patterns</key>
435435
<array>
436436
<dict>
437437
<key>begin</key>
438-
<string>(?&lt;={|,|^)\s*(?![,}])</string>
438+
<string>(?&lt;=\{|,|^)\s*(?![,}])</string>
439439
<key>end</key>
440-
<string>\s*(?:(?=\})|(\:))</string>
440+
<string>\s*(?:(?=\})|:)</string>
441441
<key>patterns</key>
442442
<array>
443443
<dict>
@@ -450,7 +450,7 @@
450450
<key>begin</key>
451451
<string>(?&lt;=:|^)\s*</string>
452452
<key>end</key>
453-
<string>\s*(?:(?=\}|,))</string>
453+
<string>\s*(?:(?=\})|,)</string>
454454
<key>patterns</key>
455455
<array>
456456
<dict>

langs/Python3.tmLanguage

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -395,18 +395,18 @@
395395
</dict>
396396
<dict>
397397
<key>begin</key>
398-
<string>{</string>
398+
<string>\{</string>
399399
<key>end</key>
400-
<string>}</string>
400+
<string>\}</string>
401401
<key>name</key>
402402
<string>meta.structure.dictionary.python.3</string>
403403
<key>patterns</key>
404404
<array>
405405
<dict>
406406
<key>begin</key>
407-
<string>(?&lt;={|,|^)\s*(?![,}])</string>
407+
<string>(?&lt;=\{|,|^)\s*(?![,}])</string>
408408
<key>end</key>
409-
<string>\s*(?:(?=\})|(\:))</string>
409+
<string>\s*(?:(?=\})|:)</string>
410410
<key>patterns</key>
411411
<array>
412412
<dict>
@@ -419,7 +419,7 @@
419419
<key>begin</key>
420420
<string>(?&lt;=:|^)\s*</string>
421421
<key>end</key>
422-
<string>\s*(?:(?=\}|,))</string>
422+
<string>\s*(?:(?=\})|,)</string>
423423
<key>patterns</key>
424424
<array>
425425
<dict>

src/common.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Python and Cython Syntax Highlighters ##
44
## ===================================== ##
55
## ##
6-
## Version: 2.0.00.025 (20141007) ##
6+
## Version: 2.0.00.069 (20141007) ##
77
## File: src/common.py ##
88
## ##
99
## For more information about the project, please visit ##
@@ -317,31 +317,27 @@
317317
0x0230:
318318
{
319319
'name': 'meta.structure.dictionary.{SCOPE}',
320-
'begin': r'{',
320+
'begin': r'\{',
321321
'patterns':
322322
[
323323
{
324-
'begin': r'(?<={|,|^)\s*(?![,}])',
324+
'begin': r'(?<=\{|,|^)\s*(?![,}])',
325325
'patterns':
326326
[
327-
{
328-
'include': '$self'
329-
}
327+
{'include': '$self'}
330328
],
331-
'end' : r'\s*(?:(?=\})|(\:))'
329+
'end' : r'\s*(?:(?=\})|:)'
332330
},
333331
{
334332
'begin': r'(?<=:|^)\s*',
335333
'patterns':
336334
[
337-
{
338-
'include': '$self'
339-
}
335+
{'include': '$self'}
340336
],
341-
'end' : r'\s*(?:(?=\}|,))'
337+
'end' : r'\s*(?:(?=\})|,)'
342338
}
343339
],
344-
'end' : r'}'
340+
'end' : r'\}'
345341
},
346342

347343
0x0240:

src/convert.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Python and Cython Syntax Highlighters ##
55
## ===================================== ##
66
## ##
7-
## Version: 2.0.00.052 (20141007) ##
7+
## Version: 2.0.00.066 (20141007) ##
88
## File: src/convert.py ##
99
## ##
1010
## For more information about the project, please visit ##
@@ -156,13 +156,13 @@ def write(self, kind, extension):
156156
full_path = join(real_path, file_name + extension)
157157
# Write out the property-list file
158158
with open(full_path, 'w+b') as file:
159-
plistlib.writePlist(definition, file)
159+
plistlib.dump(definition, file)
160160
print('{} dictionary has been converted and placed:'.format(kind),
161161
'\t{!r}'.format(full_path), sep='\n')
162162
if comments:
163163
full_path = join(real_path, comment_name)
164164
with open(full_path, 'w+b') as file:
165-
plistlib.writePlist(preference, file)
165+
plistlib.dump(preference, file)
166166
print('Comments preference has been converted and placed:',
167167
'\t{!r}'.format(full_path), sep='\n')
168168

0 commit comments

Comments
 (0)