Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.49k stars 170 forks source link

Put import-related Python keywords into separate group for lexer. #5430

Closed the-allanc closed 6 months ago

the-allanc commented 6 months ago

I've been trying to make the syntax highlighting more like the one used by Xed (the default text editor for Linux Mint) which uses GtkSourceView.

It categorises keywords relating to module imports from Python separately - so this merge request attempts to recreate that. It uses the same theme style as for normal keywords, so existing themes should look the same for most users.

Alexey-T commented 6 months ago

It categorises keywords relating to module imports from Python separately - so this merge request attempts to recreate that.

but for what? currently these 3 keywords lay good in 'keywords' group. making new group makes parser little slower.