From e3d65fcf3f87806031f647da0da71675e1bc404f Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Fri, 17 Aug 2018 21:09:51 +0200 Subject: [PATCH] TextEditor: Ship generic Kate highlight definition for Python Qt Creator comes with several Kate highlighter definition files. With the release of Qt for Python and, soon, the possibility for Python code completion via lsp, it seems appropriate to support Python syntax highlighting by default. Change-Id: If42c620d802920b54c508780b0d264343401b9a7 Reviewed-by: Orgad Shaneh Reviewed-by: David Schulz Reviewed-by: hjk --- .../3rdparty/generic-highlighter/python.xml | 686 ++++++++++++++++++ 1 file changed, 686 insertions(+) create mode 100644 src/share/3rdparty/generic-highlighter/python.xml diff --git a/src/share/3rdparty/generic-highlighter/python.xml b/src/share/3rdparty/generic-highlighter/python.xml new file mode 100644 index 00000000000..59b31d6c6f2 --- /dev/null +++ b/src/share/3rdparty/generic-highlighter/python.xml @@ -0,0 +1,686 @@ + + + + + + + + + + + + + + + + + + import + from + as + + + class + def + del + global + lambda + nonlocal + + + and + in + is + not + or + + + assert + break + continue + elif + else + except + finally + for + if + pass + raise + return + try + while + with + yield + async + await + + + __import__ + abs + all + any + apply + ascii + basestring + bin + bool + buffer + bytearray + bytes + callable + chr + classmethod + cmp + coerce + compile + complex + delattr + dict + dir + divmod + enumerate + eval + exec + execfile + file + filter + float + format + frozenset + getattr + globals + hasattr + hash + help + hex + id + input + int + intern + isinstance + issubclass + iter + len + list + locals + long + map + max + memoryview + min + next + object + oct + open + ord + pow + print + property + range + raw_input + reduce + reload + repr + reversed + round + set + setattr + slice + sorted + staticmethod + str + sum + super + tuple + type + unichr + unicode + vars + xrange + zip + + + None + self + True + False + NotImplemented + Ellipsis + __debug__ + __file__ + __name__ + + + SIGNAL + SLOT + connect + + + __new__ + __init__ + __del__ + __repr__ + __str__ + __lt__ + __le__ + __eq__ + __ne__ + __gt__ + __ge__ + __cmp__ + __rcmp__ + __hash__ + __nonzero__ + __unicode__ + __getattr__ + __setattr__ + __delattr__ + __getattribute__ + __get__ + __set__ + __delete__ + __call__ + __len__ + __getitem__ + __setitem__ + __delitem__ + __iter__ + __reversed__ + __contains__ + __getslice__ + __setslice__ + __delslice__ + __add__ + __sub__ + __mul__ + __floordiv__ + __mod__ + __divmod__ + __pow__ + __lshift__ + __rshift__ + __and__ + __xor__ + __or__ + __div__ + __truediv__ + __radd__ + __rsub__ + __rmul__ + __rdiv__ + __rtruediv__ + __rfloordiv__ + __rmod__ + __rdivmod__ + __rpow__ + __rlshift__ + __rrshift__ + __rand__ + __rxor__ + __ror__ + __iadd__ + __isub__ + __imul__ + __idiv__ + __itruediv__ + __ifloordiv__ + __imod__ + __ipow__ + __ilshift__ + __irshift__ + __iand__ + __ixor__ + __ior__ + __neg__ + __pos__ + __abs__ + __invert__ + __complex__ + __int__ + __long__ + __float__ + __oct__ + __hex__ + __index__ + __coerce__ + __enter__ + __exit__ + __bytes__ + __format__ + __next__ + __dir__ + __await__ + __aiter__ + __anext__ + __aenter__ + __aexit__ + + + + ArithmeticError + AssertionError + AttributeError + BaseException + BlockingIOError + BrokenPipeError + BufferError + BytesWarning + ChildProcessError + ConnectionAbortedError + ConnectionError + ConnectionRefusedError + ConnectionResetError + DeprecationWarning + EnvironmentError + EOFError + Exception + FileExistsError + FileNotFoundError + FloatingPointError + FutureWarning + GeneratorExit + ImportError + ImportWarning + IndentationError + IndexError + InterruptedError + IOError + IsADirectoryError + KeyboardInterrupt + KeyError + LookupError + MemoryError + NameError + NotADirectoryError + NotImplementedError + OSError + OverflowError + PendingDeprecationWarning + PermissionError + ProcessLookupError + ReferenceError + ResourceWarning + RuntimeError + RuntimeWarning + StandardError + StopIteration + SyntaxError + SyntaxWarning + SystemError + SystemExit + TabError + TimeoutError + TypeError + UnboundLocalError + UnicodeDecodeError + UnicodeEncodeError + UnicodeError + UnicodeTranslateError + UnicodeWarning + UserWarning + ValueError + Warning + WindowsError + ZeroDivisionError + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +