Skip to content

Commit 5ac1607

Browse files
fix: python highlighting to match styleguide (#31)
* fix: python highlighting to match styleguide Added new groups (recent version v8.7.7) and re-themed a few things with the VSCode port as a role model. * Changed BUILTINS from bold to italic to match the VSCode port * Add the theme files (missed them in the last commit)
1 parent 0ca0b28 commit 5ac1607

File tree

5 files changed

+80
-45
lines changed

5 files changed

+80
-45
lines changed

templates/editor.tera

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -225,19 +225,26 @@ whiskers:
225225
</LexerType>
226226
<LexerType name="python" desc="Python" ext="">
227227
<WordsStyle name="DEFAULT" styleID="0" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
228-
<WordsStyle name="COMMENTLINE" styleID="1" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
229-
<WordsStyle name="NUMBER" styleID="2" fgColor="{{ mauve.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
228+
<WordsStyle name="COMMENTLINE" styleID="1" fgColor="{{ overlay2.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="2" fontSize="" />
229+
<WordsStyle name="NUMBER" styleID="2" fgColor="{{ peach.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
230230
<WordsStyle name="STRING" styleID="3" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
231231
<WordsStyle name="CHARACTER" styleID="4" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
232-
<WordsStyle name="KEYWORDS" styleID="5" fgColor="{{ maroon.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="1" fontSize="" keywordClass="instre1" />
232+
<WordsStyle name="KEYWORDS" styleID="5" fgColor="{{ mauve.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" keywordClass="instre1" />
233233
<WordsStyle name="TRIPLE" styleID="6" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
234234
<WordsStyle name="TRIPLEDOUBLE" styleID="7" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
235-
<WordsStyle name="CLASSNAME" styleID="8" fgColor="{{ maroon.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="1" fontSize="" />
236-
<WordsStyle name="DEFNAME" styleID="9" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
237-
<WordsStyle name="OPERATOR" styleID="10" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="1" fontSize="" />
238-
<WordsStyle name="IDENTIFIER" styleID="11" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
239-
<WordsStyle name="COMMENTBLOCK" styleID="12" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
240-
<WordsStyle name="DECORATOR" styleID="15" fgColor="{{ maroon.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="2" fontSize="" />
235+
<WordsStyle name="CLASS NAME" styleID="8" fgColor="{{ yellow.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
236+
<WordsStyle name="DEF NAME" styleID="9" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
237+
<WordsStyle name="OPERATOR" styleID="10" fgColor="{{ overlay2.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="1" fontSize="" />
238+
<WordsStyle name="IDENTIFIER" styleID="11" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
239+
<WordsStyle name="COMMENT BLOCK" styleID="12" fgColor="{{ overlay2.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="2" fontSize="" />
240+
<WordsStyle name="DECORATOR" styleID="15" fgColor="{{ peach.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="2" fontSize="" />
241+
<WordsStyle name="ATTRIBUTE" styleID="20" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="2" fontSize="" />
242+
<WordsStyle name="F STRING" styleID="16" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
243+
<WordsStyle name="F CHARACTER" styleID="17" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
244+
<WordsStyle name="F TRIPLE" styleID="18" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
245+
<WordsStyle name="F TRIPLEDOUBLE" styleID="19" fgColor="{{ green.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />
246+
<WordsStyle name="BUILTINS" styleID="14" fgColor="{{ blue.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="2" fontSize="" keywordClass="instre2" />
247+
241248
</LexerType>
242249
<LexerType name="batch" desc="Batch" ext="">
243250
<WordsStyle name="DEFAULT" styleID="0" fgColor="{{ text.hex }}" bgColor="{{ base.hex }}" fontName="" fontStyle="0" fontSize="" />

themes/catppuccin-frappe.xml

Lines changed: 16 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/catppuccin-latte.xml

Lines changed: 16 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/catppuccin-macchiato.xml

Lines changed: 16 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)