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

Commit 6495ce1

Browse files
committed
updated tmtools calls, optional comment based highlight removed
1 parent 5444ae6 commit 6495ce1

12 files changed

Lines changed: 1182 additions & 1294 deletions

File tree

INFO

Lines changed: 0 additions & 25 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ Python and Cython language bundles
22
==================================
33

44
***THE MOST POPULAR AND MOST FEATURE RICH PYTHON SYNTAX HIGHLIGHTER FOR
5-
SUBLIME TEXT AS OF TIME,
6-
[OVER 75,000 DOWNLOADS](https://sublime.wbond.net/packages/Python%203))!***
5+
SUBLIME TEXT WITH [OVER 125,000 DOWNLOADS AND BEING IN THE TOP 100 PACKAGES](
6+
https://sublime.wbond.net/packages/Python%203))!***
77

88
Bleeding-egde Python and Cython syntax highlighters and other goodies for
99
Sublime Text 2/3 and TextMate editors.
@@ -48,9 +48,6 @@ syntax highlighters:
4848
Future plans
4949
------------
5050

51-
- Combine optional-comment-based string highlighters, eg. `# syntax:re+fmt`
52-
- Add optional-comment-based external language support, eg: `# syntax:sql`, for
53-
starters these should be SQL, HTML and JSON
5451
- Create a better Twilight-based theme file.
5552

5653

TODO

Whitespace-only changes.

VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

build.py

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,7 @@
99
CURRENT_DIR = '.'
1010
LANG_PATH = join(CURRENT_DIR, 'langs')
1111
THEME_PATH = join(CURRENT_DIR, 'themes')
12-
13-
# Import cutils modules
14-
try:
15-
import cutils.ccom
16-
import cutils.clic
17-
import cutils.cver
18-
19-
# Update version
20-
cutils.cver.version(CURRENT_DIR, sub_max=9, rev_max=99, build_max=999)
21-
# Collect all special comments
22-
cutils.ccom.collect(CURRENT_DIR)
23-
# Update header comments
24-
cutils.clic.header(CURRENT_DIR)
25-
except ImportError:
26-
print('[WARNING] cutils modules are missing: '
27-
'install it from http://www.cutils.org')
12+
LOCAL_PATH = join('~', '.config', 'sublime-text-3', 'Packages', 'User')
2813

2914
# Import tmtools modules
3015
try:
@@ -45,21 +30,21 @@
4530
py_details = {'name' : 'Python3',
4631
'path' : LANG_PATH,
4732
'scope': 'python.3',
48-
'comments' : {'lines': '#'},
33+
'comments' : {'line_comments': ('#',)},
4934
'test_name': 'Python3_TEST',
50-
'test_path': '~/.config/sublime-text-3/Packages/User/Python3_TEST'}
35+
'test_path': join(LOCAL_PATH, 'Python3_TEST')}
5136

5237
cy_details = {'name' : 'Cython',
5338
'path' : LANG_PATH,
5439
'scope': 'cython',
55-
'comments' : {'lines': '#'},
40+
'comments' : {'line_comments': ('#',)},
5641
'test_name': 'Cython_TEST',
57-
'test_path': '~/.config/sublime-text-3/Packages/User/Cython_TEST'}
42+
'test_path': join(LOCAL_PATH, 'Cython_TEST')}
5843

5944
gl_details = {'name': 'Gloom',
6045
'path': THEME_PATH,
6146
'test_name': 'Gloom_TEST',
62-
'test_path': '~/.config/sublime-text-3/Packages/User/Gloom_TEST'}
47+
'test_path': join(LOCAL_PATH, 'Gloom_TEST')}
6348

6449
# NOTE: Old path to theme files => DO NOT SUPPORT IT:
6550
# '~/Library/Application Support/Sublime Text 3/Packages/Color Scheme - Default'

img/preview.png

-98.9 KB
Loading

0 commit comments

Comments
 (0)