aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el35
1 files changed, 19 insertions, 16 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 949c112ee75..00a6b804e72 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -325,8 +325,12 @@
325 (,(rx symbol-start "class" (1+ space) (group (1+ (or word ?_)))) 325 (,(rx symbol-start "class" (1+ space) (group (1+ (or word ?_))))
326 (1 font-lock-type-face)) 326 (1 font-lock-type-face))
327 ;; Constants 327 ;; Constants
328 (,(rx symbol-start (group "None" symbol-end)) 328 (,(rx symbol-start
329 (1 font-lock-constant-face)) 329 ;; copyright, license, credits, quit, exit are added by the
330 ;; site module and since they are not intended to be used in
331 ;; programs they are not added here either.
332 (or "None" "True" "False" "Ellipsis" "__debug__" "NotImplemented")
333 symbol-end) . font-lock-constant-face)
330 ;; Decorators. 334 ;; Decorators.
331 (,(rx line-start (* (any " \t")) (group "@" (1+ (or word ?_)) 335 (,(rx line-start (* (any " \t")) (group "@" (1+ (or word ?_))
332 (0+ "." (1+ (or word ?_))))) 336 (0+ "." (1+ (or word ?_)))))
@@ -339,7 +343,7 @@
339 "FutureWarning" "GeneratorExit" "IOError" "ImportError" 343 "FutureWarning" "GeneratorExit" "IOError" "ImportError"
340 "ImportWarning" "IndentationError" "IndexError" "KeyError" 344 "ImportWarning" "IndentationError" "IndexError" "KeyError"
341 "KeyboardInterrupt" "LookupError" "MemoryError" "NameError" 345 "KeyboardInterrupt" "LookupError" "MemoryError" "NameError"
342 "NotImplemented" "NotImplementedError" "OSError" "OverflowError" 346 "NotImplementedError" "OSError" "OverflowError"
343 "PendingDeprecationWarning" "ReferenceError" "RuntimeError" 347 "PendingDeprecationWarning" "ReferenceError" "RuntimeError"
344 "RuntimeWarning" "StandardError" "StopIteration" "SyntaxError" 348 "RuntimeWarning" "StandardError" "StopIteration" "SyntaxError"
345 "SyntaxWarning" "SystemError" "SystemExit" "TabError" "TypeError" 349 "SyntaxWarning" "SystemError" "SystemExit" "TabError" "TypeError"
@@ -350,19 +354,18 @@
350 ;; Builtins 354 ;; Builtins
351 (,(rx (or line-start (not (any ". \t"))) (* (any " \t")) symbol-start 355 (,(rx (or line-start (not (any ". \t"))) (* (any " \t")) symbol-start
352 (group 356 (group
353 (or "_" "__debug__" "__doc__" "__import__" "__name__" "__package__" 357 (or "_" "__doc__" "__import__" "__name__" "__package__" "abs" "all"
354 "abs" "all" "any" "apply" "basestring" "bin" "bool" "buffer" 358 "any" "apply" "basestring" "bin" "bool" "buffer" "bytearray"
355 "bytearray" "bytes" "callable" "chr" "classmethod" "cmp" "coerce" 359 "bytes" "callable" "chr" "classmethod" "cmp" "coerce" "compile"
356 "compile" "complex" "copyright" "credits" "delattr" "dict" "dir" 360 "complex" "delattr" "dict" "dir" "divmod" "enumerate" "eval"
357 "divmod" "enumerate" "eval" "execfile" "exit" "file" "filter" 361 "execfile" "file" "filter" "float" "format" "frozenset"
358 "float" "format" "frozenset" "getattr" "globals" "hasattr" "hash" 362 "getattr" "globals" "hasattr" "hash" "help" "hex" "id" "input"
359 "help" "hex" "id" "input" "int" "intern" "isinstance" "issubclass" 363 "int" "intern" "isinstance" "issubclass" "iter" "len" "list"
360 "iter" "len" "license" "list" "locals" "long" "map" "max" "min" 364 "locals" "long" "map" "max" "min" "next" "object" "oct" "open"
361 "next" "object" "oct" "open" "ord" "pow" "print" "property" "quit" 365 "ord" "pow" "print" "property" "range" "raw_input" "reduce"
362 "range" "raw_input" "reduce" "reload" "repr" "reversed" "round" 366 "reload" "repr" "reversed" "round" "set" "setattr" "slice"
363 "set" "setattr" "slice" "sorted" "staticmethod" "str" "sum" 367 "sorted" "staticmethod" "str" "sum" "super" "tuple" "type"
364 "super" "tuple" "type" "unichr" "unicode" "vars" "xrange" "zip" 368 "unichr" "unicode" "vars" "xrange" "zip")) symbol-end)
365 "True" "False" "Ellipsis")) symbol-end)
366 (1 font-lock-builtin-face)) 369 (1 font-lock-builtin-face))
367 ;; asignations 370 ;; asignations
368 ;; support for a = b = c = 5 371 ;; support for a = b = c = 5