aboutsummaryrefslogtreecommitdiffstats
path: root/queries/python/highlights.scm
Commit message (Collapse)AuthorAgeFilesLines
* Python: fix class highlights (#1548)Santos Gallegos2021-07-111-6/+7
|
* Highlights(python): Add `@keyword.function`Sergio Alejandro Vargas2021-07-061-2/+5
| | | | Use `@keyword.function` for `def` and `lambda`
* feat(keywords) merge return and yield into keyword.return groupantonk522021-07-041-4/+1
|
* feat(keywords) add keyword.return & keyword.yieldantonk522021-07-041-2/+8
|
* python(highlights): don't use type for APPStephan Seitz2021-07-011-1/+1
|
* highlights(python): use any-of?Stephan Seitz2021-05-161-9/+30
|
* Python highlights: update definition of decoratorStephan Seitz2021-01-071-1/+4
|
* Remove usages of `@embedded` in highlightsStephan Seitz2021-01-061-1/+1
|
* Python: fix self highlighingSantos Gallegos2020-12-181-1/+1
|
* Update Python queriesStephan Seitz2020-11-301-2/+8
|
* Fix Python queries for parser updateStephan Seitz2020-11-031-8/+8
|
* Dart highlights: Reset highlight in interpolationStephan Seitz2020-10-051-1/+1
|
* fix(python): use `@Normal` again for f-strings `@none` is not aggressive enoughStephan Seitz2020-09-191-1/+1
|
* Add @keyword.operator for operators that are English words and add ↵Stephan Seitz2020-09-191-4/+7
| | | | @exception for Java/JS
* reset python interpolation nodekiyan422020-09-151-1/+1
|
* Fix #307: Use and document TSVariable/TSVariableBuiltin in all languagesStephan Seitz2020-09-141-4/+7
|
* ci: fix wrong queriesThomas Vigouroux2020-09-111-2/+2
|
* Python highlights: add additional operatorsStephan Seitz2020-08-201-0/+7
| | | | | This is applies the upstream PR to our repo: https://github.com/tree-sitter/tree-sitter-python/pull/73
* Python: fix some highlightsSantos Gallegos2020-08-181-3/+3
| | | | These aren't valid lua patterns
* Python: update highlightsSantos Gallegos2020-08-171-4/+15
| | | | | - Fix "as" outside imports - Add builtin classes and constants
* chore(highlights): remove is predicate usageSteven Sojka2020-08-171-2/+0
|
* Python: update highlightsSantos Gallegos2020-08-161-33/+37
| | | | | | | - Get rid of @self - Highlight methods correctly - Highlight self as the first parameter of a method - Use new syntax (# for predicates, (_) instead of (*) for wildcards)
* fix(queries): use vim-match for non lua regexesSteven Sojka2020-08-161-2/+2
|
* feat(highlights): add is predicateSteven Sojka2020-08-161-0/+2
|
* Python highlights: Highlight ->, ...Stephan Seitz2020-08-141-1/+2
|
* Fix #198: prefer method highlighting over attributeStephan Seitz2020-07-221-4/+4
|
* Python highlights: add lambda parametersStephan Seitz2020-07-221-0/+6
|
* Python highlights: highlight functions with self as methods (#198)Stephan Seitz2020-07-201-0/+13
| | | | Also highlight __init__/__new__ as constructor
* Python highlights: Surround type subscript query with (type ...)Stephan Seitz2020-07-091-2/+3
|
* Highlight complete type definitionStephan Seitz2020-07-081-0/+2
|
* Python locals/highlights: Parameters can be optionally typedStephan Seitz2020-07-081-0/+4
|
* add python asynckiyan422020-06-301-0/+1
|
* Python highlights: Reset highlighting in f-string interpolationStephan Seitz2020-06-261-2/+3
| | | | | This solution is preferable to `(identifier) @Normal` since otherwise everything without highlight will use string-highlighting.
* Python highlights: Add walrus operatorStephan Seitz2020-06-261-0/+1
|
* Adapt Python highlights to new query syntaxStephan Seitz2020-06-241-75/+64
|
* Add highlighting of dunder identifiers (e.g. __all__, __add__) to Python ↵Stephan Seitz2020-06-211-0/+3
| | | | highlights
* Updated python highlightsJakub Łuczyński2020-06-211-45/+31
| | | | | | | | | * 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
* Improve Python highlightsStephan Seitz2020-05-281-0/+33
| | | | | | | | | | - 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
* Introduce `@include`Stephan Seitz2020-05-171-3/+3
|
* Add python/highlights.scm from tree-sitter-pythonStephan Seitz2020-05-171-0/+176