SynEdit: Python HL, keyword fixes. Issue #41285

(cherry picked from commit 2f79294556)
This commit is contained in:
Martin 2024-12-21 21:02:31 +01:00
parent 00380e9b5f
commit 034d21068b

View File

@ -228,31 +228,41 @@ const
);
// List of non-keyword identifiers
NONKEYWORDCOUNT = 65;
NONKEYWORDCOUNT = 78;
NONKEYWORDS: array [1..NONKEYWORDCOUNT] of string =
(
'__future__',
'__import__',
'abs',
'apply',
'as',
'buffer',
'aiter',
'all',
'anext',
'any',
'ascii',
'bin',
'bool',
'breakpoint',
'bytearray',
'bytes',
'callable',
'chr',
'cmp',
'coerce',
'classmethod',
'compile',
'complex',
'copyright',
'credits',
'delattr',
'dict',
'dir',
'divmod',
'enumerate',
'eval',
'exec',
'execfile',
'file',
'exit',
'filter',
'float',
'format',
'frozenset',
'getattr',
'globals',
'hasattr',
@ -262,39 +272,42 @@ const
'id',
'input',
'int',
'intern',
'isinstance',
'issubclass',
'iter',
'len',
'license',
'list',
'locals',
'long',
'NotImplemented',
'map',
'max',
'memoryview',
'min',
'next',
'NotImplemented',
'object',
'oct',
'open',
'ord',
'pow',
'print',
'property',
'quit',
'range',
'raw_input',
'reduce',
'reload',
'repr',
'reversed',
'round',
'self',
'set',
'setattr',
'slice',
'sorted',
'staticmethod',
'str',
'sum',
'super',
'tuple',
'type',
'unichr',
'unicode',
'vars',
'xrange',
'zip'
);
var