Add .pyx extension to Python syntax

Include the .pyx (Cython) extension in the Python SyntaxDefinition files for both Dark and Light themes so .pyx files are recognized and highlighted. Updated QuickLook.Plugin.TextViewer/Syntax/Dark/Python.xshd and QuickLook.Plugin.TextViewer/Syntax/Light/Python.xshd.
This commit is contained in:
ema
2026-02-10 01:16:52 +08:00
parent 2fd8e7653a
commit 979b061a41
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<SyntaxDefinition name="Python" extensions=".py;.pyw;.vpy" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
<SyntaxDefinition name="Python" extensions=".py;.pyw;.pyx;.vpy" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
<Color name="Comment" foreground="#FF57A64A" />
<Color name="String" foreground="#FFD69D85" />

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<SyntaxDefinition name="Python" extensions=".py;.pyw;.vpy">
<SyntaxDefinition name="Python" extensions=".py;.pyw;.pyx;.vpy">
<Environment>
<Default color="Black" bgcolor="#FFFFFF"/>