Hello,
I'm trying to achieve color theme like in Blender.
And I'm mostly succeeded but in some cases I can't get proper result.
1. for syntax like "@classmethod"
blender https://imgur.com/yepuPHt
cudatext https://imgur.com/F7NKtCy
2. for syntax like "True/False" it also include "type"
blender https://imgur.com/qdxwAdw
cudatext https://imgur.com/RiL953W
Can we do something with this?
Theme Syntax can't setup proper colors
-
- Posts: 392
- Joined: 01.12.2020 13:46
Here we have 2 issues in Python lexer
1. "classmethod" is some sort of keyword (not keyword but special known word), so @classmethod is highlited as "symbol"+"spec word".
it's better that to highlite @word always with a purple.
because then @word is always purple, wherever "word" is special or not.
Ok?
2. lexer highlighted special words in any context, i just fixed the lexer to avoid it before "=" char.
1. "classmethod" is some sort of keyword (not keyword but special known word), so @classmethod is highlited as "symbol"+"spec word".
it's better that to highlite @word always with a purple.
because then @word is always purple, wherever "word" is special or not.
Ok?
2. lexer highlighted special words in any context, i just fixed the lexer to avoid it before "=" char.
-
- Posts: 392
- Joined: 01.12.2020 13:46
OK, now @Id.id.id will be highlighted with special color (theme item TagId).
download last lexers from
https://github.com/Alexey-T/CudaText/tr ... ata/lexlib
to test it.
2. I didn't get your idea.
download last lexers from
https://github.com/Alexey-T/CudaText/tr ... ata/lexlib
to test it.
2. I didn't get your idea.
-
- Posts: 392
- Joined: 01.12.2020 13:46