Yuriy
e0b034dcd1
Add syntax highlighting for Python pattern matching
...
Add syntax highlighting for `match` and `case` keywords in Python
(https://peps.python.org/pep-0636/ ).
2 years ago
ChrHorn
11367488ac
Improve Python queries, add locals ( #3284 )
2 years ago
Erasin
df5ab8b40c
Fix: Python hightlight ( #3201 )
2 years ago
Kirawi
0a2646e720
Improve python highlighting ( #3103 )
...
* improve python queries
* update python grammar to `0.20.2`
* fix variadic parameter scope
* add punctuation scopes
* fix order of punctuation scopes
* undo `embedded` delete
2 years ago
Paul Scott
09f9f70576
Python highlight decorator attribute
2 years ago
Paul Scott
2a2030142f
Python highlight keyword argument as parameter
2 years ago
Paul Scott
e680f9644d
Python handling highlighting parameters with defaults
2 years ago
Paul Scott
abef250c58
Python highlight improvements: type, parameter etc
...
* str, list, etc. handled as @function.builtin and @type.builtin
* None and non-conforming type indentifiers as @type in type hints
* class identifiers treated as @type
* @constructor used for constructor definitions and calls rather than
as a catch-all for type-like things
* Parameters highlighted
* self and cls as @variable.builtin
* improved decorator highlighting as part of @function
Re-ordering of some statements to give more accurate priority.
2 years ago
Zeddicus414
a6da99a144
Change python highlights.scm to more fully utilize the themes.
...
Create type keywords
Allow _CONSTANTS to start with _
Highlight constants before constructors
Move some keywords into @keyword.control
2 years ago
Kirawi
ee889aaa85
Updated tree-sitter query scopes ( #896 )
...
* updated theme scopes
variable.property -> variable.field
property -> variable.field
* updated theme scopes
* update book and themes
updated book and themes to reflect scope changes
* wip
* update more queries
* update dark_plus.toml
3 years ago
Blaž Hrastnik
4e31d1521b
Add tree-sitter queries.
4 years ago