|
1 | | -empty = { |
| 1 | +# You can copy the EMPTY configuration to start your customizations |
| 2 | + |
| 3 | +# A empty configuration |
| 4 | +EMPTY = { |
2 | 5 | 'singleWords': '', |
3 | 6 | 'multiWords': [], |
4 | 7 | 'comment': '', |
|
37 | 40 | } |
38 | 41 | } |
39 | 42 |
|
| 43 | + |
| 44 | +# DEFAULT configuration |
40 | 45 | DEFAULT = { |
41 | | - 'singleWords': '#%^&*()-+/{[]}\\|:;"\'/.,<>~=?', |
| 46 | + 'singleWords': '#%^&*()-+/{[]}\\|:;"\'/.,<>~=?`$', |
42 | 47 | 'multiWords': [], |
43 | 48 | 'comment': '', |
44 | 49 | 'keyWord': [], |
|
59 | 64 | } |
60 | 65 | } |
61 | 66 |
|
| 67 | + |
| 68 | +# C++ configuration |
62 | 69 | cpp = { |
63 | 70 | 'singleWords': '#%^&*()-+/{[]}\\|:;"\'/.,<>~=?', |
64 | | - 'multiWords': ['int', 'double', 'float', 'long', 'short', 'string', 'class', 'void', 'if', 'for', 'else', 'while', 'namespace', 'using', 'template', 'bool', 'return', 'auto', 'struct', 'friend', 'operator', 'cont', 'continue', 'break', 'true', 'false', 'new', 'delete', 'typename', 'protected', 'public', 'private', 'unsigned'], |
| 71 | + 'multiWords': ['int', 'double', 'float', 'long', 'short', 'string', 'class', 'void', 'if', 'for', 'else', 'while', 'namespace', 'using', 'template', 'bool', 'return', 'auto', 'struct', 'friend', 'operator', 'cont', 'continue', 'break', 'true', 'false', 'new', 'delete', 'typename', 'protected', 'public', 'private', 'unsigned', 'typedef', 'static'], |
65 | 72 | 'comment': '//', |
66 | 73 | 'keyWord': ['define', 'ifdef', 'ifndef', 'endif', 'include'], |
67 | 74 | 'string': ['"', '\''], |
68 | 75 | 'before': ['('], |
69 | 76 | 'after': ['class'], |
70 | | - 'special': ['int', 'double', 'float', 'long', 'short', 'string', 'class', 'void', 'if', 'for', 'else', 'while', 'namespace', 'using', 'template', 'bool', 'return', 'auto', 'struct', 'friend', 'operator', 'const', 'continue', 'break', 'true', 'false', 'new', 'delete', 'typename', 'protected', 'public', 'private', 'unsigned'], |
| 77 | + 'special': [], # configured below |
71 | 78 | 'color': { |
72 | 79 | 'symbol': ['red', []], |
73 | 80 | 'special': ['yellow', ['bold']], |
|
80 | 87 | 'clear': ['white', []], |
81 | 88 | } |
82 | 89 | } |
| 90 | +cpp['special'] = cpp['multiWords'] |
83 | 91 |
|
84 | 92 |
|
| 93 | +# Python3 configuration |
85 | 94 | python3 = { |
86 | 95 | 'singleWords': '#%^&*()-+/{[]}\\|:;"\'/.,<>~=?', |
87 | 96 | 'multiWords': ['int', 'float', 'str', 'class', 'if', 'for', 'else', 'elif', 'while', 'bool', 'return', 'cont', 'continue', 'break', 'True', 'False', 'del', 'async', 'import', 'as', 'def', 'try', 'except', 'not', 'in', 'with', 'from', 'None', 'lambda', 'raise'], |
|
90 | 99 | 'string': ['"', '\''], |
91 | 100 | 'before': ['('], |
92 | 101 | 'after': ['class'], |
93 | | - 'special': ['int', 'float', 'str', 'class', 'if', 'for', 'else', 'elif', 'while', 'bool', 'return', 'cont', 'continue', 'break', 'True', 'False', 'del', 'async', 'import', 'as', 'def', 'try', 'except', 'not', 'in', 'with', 'from', 'None', 'lambda', 'raise'], |
| 102 | + 'special': [], # configured below |
94 | 103 | 'color': { |
95 | 104 | 'symbol': ['red', []], |
96 | 105 | 'special': ['yellow', ['bold']], |
|
103 | 112 | 'clear': ['white', []], |
104 | 113 | } |
105 | 114 | } |
| 115 | +python3['special'] = python3['multiWords'] |
0 commit comments