mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-07 00:18:21 +02:00
SynEdit: Python HL, keyword fixes. Issue #41285
This commit is contained in:
parent
d9c3191562
commit
2f79294556
@ -228,31 +228,41 @@ const
|
|||||||
);
|
);
|
||||||
|
|
||||||
// List of non-keyword identifiers
|
// List of non-keyword identifiers
|
||||||
NONKEYWORDCOUNT = 65;
|
NONKEYWORDCOUNT = 78;
|
||||||
NONKEYWORDS: array [1..NONKEYWORDCOUNT] of string =
|
NONKEYWORDS: array [1..NONKEYWORDCOUNT] of string =
|
||||||
(
|
(
|
||||||
'__future__',
|
'__future__',
|
||||||
'__import__',
|
'__import__',
|
||||||
'abs',
|
'abs',
|
||||||
'apply',
|
'aiter',
|
||||||
'as',
|
'all',
|
||||||
'buffer',
|
'anext',
|
||||||
|
'any',
|
||||||
|
'ascii',
|
||||||
|
'bin',
|
||||||
|
'bool',
|
||||||
|
'breakpoint',
|
||||||
|
'bytearray',
|
||||||
|
'bytes',
|
||||||
'callable',
|
'callable',
|
||||||
'chr',
|
'chr',
|
||||||
'cmp',
|
'classmethod',
|
||||||
'coerce',
|
|
||||||
'compile',
|
'compile',
|
||||||
'complex',
|
'complex',
|
||||||
|
'copyright',
|
||||||
|
'credits',
|
||||||
'delattr',
|
'delattr',
|
||||||
'dict',
|
'dict',
|
||||||
'dir',
|
'dir',
|
||||||
'divmod',
|
'divmod',
|
||||||
|
'enumerate',
|
||||||
'eval',
|
'eval',
|
||||||
'exec',
|
'exec',
|
||||||
'execfile',
|
'exit',
|
||||||
'file',
|
|
||||||
'filter',
|
'filter',
|
||||||
'float',
|
'float',
|
||||||
|
'format',
|
||||||
|
'frozenset',
|
||||||
'getattr',
|
'getattr',
|
||||||
'globals',
|
'globals',
|
||||||
'hasattr',
|
'hasattr',
|
||||||
@ -262,39 +272,42 @@ const
|
|||||||
'id',
|
'id',
|
||||||
'input',
|
'input',
|
||||||
'int',
|
'int',
|
||||||
'intern',
|
|
||||||
'isinstance',
|
'isinstance',
|
||||||
'issubclass',
|
'issubclass',
|
||||||
'iter',
|
'iter',
|
||||||
'len',
|
'len',
|
||||||
|
'license',
|
||||||
'list',
|
'list',
|
||||||
'locals',
|
'locals',
|
||||||
'long',
|
|
||||||
'NotImplemented',
|
|
||||||
'map',
|
'map',
|
||||||
'max',
|
'max',
|
||||||
|
'memoryview',
|
||||||
'min',
|
'min',
|
||||||
|
'next',
|
||||||
|
'NotImplemented',
|
||||||
|
'object',
|
||||||
'oct',
|
'oct',
|
||||||
'open',
|
'open',
|
||||||
'ord',
|
'ord',
|
||||||
'pow',
|
'pow',
|
||||||
'print',
|
'print',
|
||||||
|
'property',
|
||||||
|
'quit',
|
||||||
'range',
|
'range',
|
||||||
'raw_input',
|
|
||||||
'reduce',
|
|
||||||
'reload',
|
|
||||||
'repr',
|
'repr',
|
||||||
|
'reversed',
|
||||||
'round',
|
'round',
|
||||||
'self',
|
'set',
|
||||||
'setattr',
|
'setattr',
|
||||||
'slice',
|
'slice',
|
||||||
|
'sorted',
|
||||||
|
'staticmethod',
|
||||||
'str',
|
'str',
|
||||||
|
'sum',
|
||||||
|
'super',
|
||||||
'tuple',
|
'tuple',
|
||||||
'type',
|
'type',
|
||||||
'unichr',
|
|
||||||
'unicode',
|
|
||||||
'vars',
|
'vars',
|
||||||
'xrange',
|
|
||||||
'zip'
|
'zip'
|
||||||
);
|
);
|
||||||
var
|
var
|
||||||
|
Loading…
Reference in New Issue
Block a user