Skip to content

Commit

Permalink
* Raised python ceiling to 3.12
Browse files Browse the repository at this point in the history
* Preemptively updated syntax escape sequences in prep for 3.12 support
  • Loading branch information
ImLucasBrown committed Oct 17, 2024
1 parent 4bb3406 commit 2e82489
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions nxt_editor/dockwidgets/syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ class PythonHighlighter(QSyntaxHighlighter):
# Comparison
'==', '!=', '<', '<=', '>', '>=',
# Arithmetic
'\+', '-', '\*', '/', '//', '\%', '\*\*',
r'\+', '-', r'\*', '/', '//', r'\%', r'\*\*',
# In-place
'\+=', '-=', '\*=', '/=', '\%=',
r'\+=', '-=', r'\*=', '/=', r'\%=',
# Bitwise
'\^', '\|', '\&', '\~', '>>', '<<'
r'\^', r'\|', r'\&', r'\~', '>>', '<<'
]

# Python braces
braces = ['\{', '\}', '\(', '\)', '\[', '\]']
braces = [r'\{', r'\}', r'\(', r'\)', r'\[', r'\]']

def __init__(self, document=None):
super(PythonHighlighter, self).__init__(document)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
long_description_content_type="text/markdown",
url="https://github.com/nxt-dev/nxt_editor",
packages=setuptools.find_packages(),
python_requires='>=3.7, <3.11',
python_requires='>=3.7, <3.12',
install_requires=['nxt-core<1.0,>=0.14',
'qt.py<3',
'PySide6>=6,<6.8'
Expand Down

0 comments on commit 2e82489

Please sign in to comment.