Commit graph

8 commits

Author SHA1 Message Date
Stephan Seitz
75bce1dc93 Python highlights: Reset highlighting in f-string interpolation
This solution is preferable to `(identifier) @Normal` since otherwise
everything without highlight will use string-highlighting.
2020-06-26 13:52:59 +02:00
Stephan Seitz
88c8b70560 Python highlights: Add walrus operator 2020-06-26 13:52:59 +02:00
Stephan Seitz
dfead6caca Adapt Python highlights to new query syntax 2020-06-24 10:07:22 +02:00
Stephan Seitz
a85cf1a47c Add highlighting of dunder identifiers (e.g. __all__, __add__) to Python highlights 2020-06-21 17:00:17 +02:00
Jakub Łuczyński
0b4d4b4140 Updated python highlights
* allow for digits in constant names
* removed redundant/conflicting rules
* added missing hlmap
* fixed escape_sequence
* more explicit @constructor assignment
* added rules for function decoration identifiers
2020-06-21 00:11:58 +02:00
Stephan Seitz
807d6e11fa Improve Python highlights
- Highlight types in attributes as @type (**Foo**.a)
- Highlight superclasses @type
- Highlight ^[A-Z] as @type
- Highlight isinstance(*, type) as @type
- Highlight default_parameter and keyword_argument as @parameter
- Highlight *args, **kwargs as @parameter
- Highlight -> as @operator
2020-05-28 10:42:45 +02:00
Stephan Seitz
f6bf56974e Introduce @include 2020-05-17 21:56:44 +02:00
Stephan Seitz
57424533a7 Add python/highlights.scm from tree-sitter-python 2020-05-17 21:56:44 +02:00