summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2021-03-05 09:25:24 +0100
committerMatthäus G. Chajdas <dev@anteru.net>2021-03-05 09:25:49 +0100
commit426ad7d768f787e5b91cae9f7ab2d29e0cd5845d (patch)
treec008dc6a4c715b19bd7b2f91c4bf9a772198f94c
parent0b1e10937f956d012fd4bc990d072f69e3008629 (diff)
downloadpygments-git-426ad7d768f787e5b91cae9f7ab2d29e0cd5845d.tar.gz
Fix #853.
Add bint, Py_ssize_t.
-rw-r--r--CHANGES1
-rw-r--r--pygments/lexers/python.py4
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index ab388f5d..817fcc63 100644
--- a/CHANGES
+++ b/CHANGES
@@ -15,6 +15,7 @@ Version 2.9.0
* C/C++: Improve namespace handling (#1722, #1561, #1719)
* Coq (#1721)
+ * Cython (#853)
* Julia (#1715)
* Octave: Allow multiline and block-percent comments (#1726)
* Scala: Rewrite to support Scala3 (#1694, #1035, #1121)
diff --git a/pygments/lexers/python.py b/pygments/lexers/python.py
index 6164c260..56e96533 100644
--- a/pygments/lexers/python.py
+++ b/pygments/lexers/python.py
@@ -845,14 +845,14 @@ class CythonLexer(RegexLexer):
],
'builtins': [
(words((
- '__import__', 'abs', 'all', 'any', 'apply', 'basestring', 'bin',
+ '__import__', 'abs', 'all', 'any', 'apply', 'basestring', 'bin', 'bint',
'bool', 'buffer', 'bytearray', 'bytes', 'callable', 'chr',
'classmethod', 'cmp', 'coerce', 'compile', 'complex', 'delattr',
'dict', 'dir', 'divmod', 'enumerate', 'eval', 'execfile', 'exit',
'file', 'filter', 'float', 'frozenset', 'getattr', 'globals',
'hasattr', 'hash', 'hex', 'id', 'input', 'int', 'intern', 'isinstance',
'issubclass', 'iter', 'len', 'list', 'locals', 'long', 'map', 'max',
- 'min', 'next', 'object', 'oct', 'open', 'ord', 'pow', 'property',
+ 'min', 'next', 'object', 'oct', 'open', 'ord', 'pow', 'property', 'Py_ssize_t',
'range', 'raw_input', 'reduce', 'reload', 'repr', 'reversed',
'round', 'set', 'setattr', 'slice', 'sorted', 'staticmethod',
'str', 'sum', 'super', 'tuple', 'type', 'unichr', 'unicode', 'unsigned',