Differential D3592 Diff 8765 plugins/extensions/pykrita/plugin/plugins/scripter/ui_scripter/syntax/syntax.py
Changeset View
Changeset View
Standalone View
Standalone View
plugins/extensions/pykrita/plugin/plugins/scripter/ui_scripter/syntax/syntax.py
- This file was moved from plugins/extensions/pykrita/plugin/plugins/scripter/syntax.py.
1 | # syntax.py: taken from https://wiki.python.org/moin/PyQt/Python%20syntax%20highlighting | 1 | # syntax.py: taken from https://wiki.python.org/moin/PyQt/Python%20syntax%20highlighting | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | import sys | | |||
4 | 3 | | |||
4 | import sys | ||||
5 | from PyQt5.QtCore import * | 5 | from PyQt5.QtCore import * | ||
6 | from PyQt5.QtGui import * | 6 | from PyQt5.QtGui import * | ||
7 | 7 | | |||
8 | 8 | | |||
9 | class PythonHighlighter (QSyntaxHighlighter): | 9 | class PythonHighlighter (QSyntaxHighlighter): | ||
10 | """Syntax highlighter for the Python language. | 10 | """Syntax highlighter for the Python language. | ||
11 | """ | 11 | """ | ||
12 | # Python keywords | 12 | # Python keywords | ||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |