自己在文件类型中加一个,名称叫【python+C】 ,文件名模式这一栏要加*.pyx、*pxi、*pxd的后缀,之后双击【python+C】编辑这个文件类型
这里1、2、3、4配置如下
# 1
"
#
&
'
*
+
,
-
/
:
;
<
=
>
@
[
]
{
}
# 2
False
NULL
None
True
and
as
assert
break
cdef
cimport
class
continue
cpdef
def
del
elif
else
except
final
finally
for
from
gil
global
if
import
in
include
is
lambda
language_level
nogil
nonlocal
not
or
pass
raise
return
try
while
with
yield
# 3
auto
bytes
char
const
ctypedef
dict
double
enum
extern
float
int
list
long
object
register
set
short
signed
static
str
struct
tuple
typedef
union
unsigned
void
# 4
@classmethod
@property
@staticmethod
cls
self
super
也可以按照自己喜欢的样式配置,关键字大概就这些