Commit Graph

16 Commits (0432d9cf14a7b92f03849abffaab5927939023f4)

Author SHA1 Message Date
Matthew Pomes 7e13213e74
Add `is not` and `not in` to python syntax (#10647) 6 months ago
Karem Abdul-Samad d053886fe3
Add new keyword as per PEP 695 (#10165) 7 months ago
Aito Stukas 5f44890176
Remove duplicate keyword highlight for Python 'and' (#10160) 7 months ago
Skyler Hawthorne fcd564fddf
upgrade tree-sitter-python (#8976)
supports new syntaxes from Python 3.12
11 months ago
Farzin bb27542199
Fix python highlights to support single character and alphanumeric constant identifier (#6751) 2 years ago
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 3 years ago
Paul Scott 2a2030142f Python highlight keyword argument as parameter 3 years ago
Paul Scott e680f9644d Python handling highlighting parameters with defaults 3 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.
3 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
3 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