Skip to content

Commit 3edc038

Browse files
committed
Version bump to v2.0.0-beta.28
+ CSS: cursor attributes updated + ECMAScript: Template strings in UDL + Fix Windows issue
1 parent 08ac089 commit 3edc038

File tree

4 files changed

+37
-11
lines changed

4 files changed

+37
-11
lines changed

codeintel/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.0.0-beta.27'
1+
__version__ = '2.0.0-beta.28'

codeintel/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def set_process_limits(self):
144144
prevent codeintel from blowing up the system.
145145
"""
146146
from ctypes import wintypes
147-
kernel32 = ctypes.WinDLL('kernel32', use_last_error=True)
147+
kernel32 = ctypes.WinDLL('kernel32' if six.PY3 else b'kernel32', use_last_error=True)
148148
VirtualAlloc = kernel32.VirtualAlloc
149149
VirtualAlloc.argtypes = [wintypes.LPVOID, wintypes.ULONG, wintypes.DWORD, wintypes.DWORD]
150150
VirtualAlloc.restype = wintypes.LPVOID

codeintel/codeintel2/constants_css2.py

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,23 +139,45 @@
139139
],
140140
'cursor' : [
141141
'auto',
142-
'crosshair',
143142
'default',
144-
'e-resize',
143+
'none',
144+
'context-menu',
145145
'help',
146-
'inherit',
146+
'pointer',
147+
'progress',
148+
'wait',
149+
'cell',
150+
'crosshair',
151+
'text',
152+
'vertical-text',
153+
'alias',
154+
'copy',
147155
'move',
156+
'no-drop',
157+
'not-allowed',
158+
'all-scroll',
159+
'col-resize',
160+
'row-resize',
161+
'n-resize',
162+
'e-resize',
163+
's-resize',
164+
'w-resize',
148165
'ne-resize',
149166
'nw-resize',
150-
'n-resize',
151-
'pointer',
152167
'se-resize',
153168
'sw-resize',
154-
's-resize',
155-
'text',
169+
'ew-resize',
170+
'ns-resize',
171+
'nesw-resize'
172+
'nwse-resize',
173+
'zoom-in',
174+
'zoom-out',
175+
'grab',
176+
'grabbing',
156177
'url(',
157-
'wait',
158-
'w-resize',
178+
'inherit',
179+
'initial',
180+
'unset',
159181
'!important',
160182
],
161183
'direction' : [

codeintel/codeintel2/lexers/ecmascript_262.udl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ state IN_CSL_DEFAULT:
9494

9595
'"' : paint(upto, CSL_DEFAULT), => IN_CSL_DSTRING
9696
'\'' : paint(upto, CSL_DEFAULT), => IN_CSL_SSTRING
97+
'`': paint(upto, CSL_DEFAULT), => IN_CSL_TSTRING
9798

9899
# Conditional check to see if it's preferred
99100
'/' token_check : paint(upto, CSL_DEFAULT), => IN_CSL_REGEX
@@ -152,6 +153,9 @@ state IN_CSL_SSTRING_LINECONT:
152153
/./ : => IN_CSL_SSTRING
153154
/^$/ : paint(upto, CSL_STRING), => IN_CSL_DEFAULT # End empty lines here
154155

156+
state IN_CSL_TSTRING:
157+
'`' : paint(include, CSL_STRING), => IN_CSL_DEFAULT
158+
155159
################ Numbers ################
156160

157161
state IN_CSL_NUMBER_1 :

0 commit comments

Comments
 (0)