| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | fix(python): highlight all types of docstrings (#7788) | Jakob Zahn | 2025-04-03 | 1 | -21/+3 |
| | | |||||
| * | Use order instead of priority | dcho | 2025-03-21 | 1 | -13/+12 |
| | | |||||
| * | fix(python): prioritize builtin functions | dcho | 2025-03-21 | 1 | -1/+2 |
| | | |||||
| * | fix(python): don't highlight parameter name as builtin (#7732) | Salomon Popp | 2025-03-13 | 1 | -61/+61 |
| | | |||||
| * | fix(python): highlight function calls correctly (#7728) | Salomon Popp | 2025-03-12 | 1 | -42/+42 |
| | | |||||
| * | fix(python): don't highlight attribute name as builtin (#7712) | Salomon Popp | 2025-03-11 | 1 | -24/+25 |
| | | | | | | | | | | | | | | | | * fix(python): don't highlight attribute name as builtin * fix(python): highlight `@variable.member` correctly for member access context * test: add test * test: expand test * docs: update comment * refactor: change order, remove priority override * style: remove extra newline | ||||
| * | feat(python): highlight modules | Omar Valdez | 2024-11-21 | 1 | -1/+20 |
| | | |||||
| * | feat(highlights): capture wildcard patterns as `@character.special` (#7153) | Omar Valdez | 2024-09-20 | 1 | -1/+1 |
| | | |||||
| * | feat(highlights): capture wildcard imports as `@character.special` | Omar Valdez | 2024-08-01 | 1 | -0/+3 |
| | | |||||
| * | refactor(queries): Remove quotes from properties in set! directive | Omar Valdez | 2024-07-28 | 1 | -1/+1 |
| | | |||||
| * | refactor(python): merge docstring queries | ObserverOfTime | 2024-06-28 | 1 | -22/+3 |
| | | |||||
| * | feat(awk,cmake,python,r,starlark): deactivate spelling in shebangs | Kai Moschcau | 2024-05-01 | 1 | -1/+1 |
| | | |||||
| * | feat: more `@keyword.type` captures | Riley Bruins | 2024-05-01 | 1 | -2/+5 |
| | | |||||
| * | fix(python): captures inner string contents with spell | Colin Kennedy | 2024-04-17 | 1 | -3/+25 |
| | | |||||
| * | fix(python): add staticmethod to builtin decorators | vsajko | 2024-03-30 | 1 | -1/+1 |
| | | |||||
| * | refactor(format): drop extra indentation for field | Phạm Huy Hoàng | 2024-03-21 | 1 | -50/+37 |
| | | |||||
| * | feat(format-scripts): linewrap predicates | 再生花 | 2024-02-23 | 1 | -17/+23 |
| | | | | "format-ignore".kick() | ||||
| * | feat(python): allow comments before module docstring | Jongwook Choi | 2024-01-25 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | Example: ```python #!/usr/bin/env/python # some comment before module docstring # Copyright (c) LICENSE foo bar """module docstring.""" ``` Python indeed recognizes it: ``` $ python -c 'import testfile; print(testfile.__doc__)' module docstring. ``` | ||||
| * | chore(python): update member lua pattern | Amaan Qureshi | 2024-01-24 | 1 | -2/+2 |
| | | |||||
| * | fix(python): add support for typed (kw)args (PEP 484) (#5875) | Zeb Nicholls | 2024-01-19 | 1 | -4/+14 |
| | | |||||
| * | chore: query formatting | Pham Huy Hoang | 2024-01-19 | 1 | -94/+162 |
| | | |||||
| * | refactor: manual pre-cleanup | Pham Huy Hoang | 2024-01-19 | 1 | -25/+22 |
| | | | | | | Moving comments, adding `format-ignore` to lines that will be better with it | ||||
| * | feat!: align standard captures with upstream | Christian Clason | 2024-01-19 | 1 | -32/+32 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Sharing highlight queries with upstream tree-sitter and Helix is difficult. Solution: Where reasonable, use capture names in tree-sitter's standard list or Helix's Atom-style hierarchy. Specifically: * tree-sitter "standard capture names" (https://github.com/tree-sitter/tree-sitter/blob/3f44b896852eb7daaa6df4fb778c9bb52c70c815/highlight/src/lib.rs#L20-L72): - `@parameter` -> `@variable.parameter` - `@field` -> `@variable.member` - `@namespace` -> `@module` - `@float` -> `@number.float` - `@symbol` -> `@string.special.symbol` - `@string.regex` -> `@string.regexp` - `@text.*` -> `@markup.*` (`strong`, `italic`, `link`, `strikethrough`; with exceptions; see below) - `@text.title` -> `@markup.heading` - `@text.literal` -> `@markup.raw` - `@text.reference` -> `@markup.link` - `@text.uri` -> `@markup.link.url` (in markup links) - `@string.special` -> `@markup.link.label` (non-url links) - `@punctuation.special` -> `@markup.list` (markdown lists only; move subitems from `@text.todo`) * Helix captures (https://docs.helix-editor.com/master/themes.html#syntax-highlighting): - `@method` -> `@function.method` - `@method.call` -> `@function.method.call` - `@text.{todo,warning,note,danger}` -> `@comment.{error,warning,hint,info,todo}` - `@text.diff.{add,delete,}` -> `@diff.{plus,minus,delta}` - `@text.uri` -> `@string.special.url` (outside markup) - `@preproc` -> `@keyword.directive` - `@define` -> `@keyword.directive`(`.define`?) - `@storageclass` -> `@keyword.storage` - `@conditional` -> `@keyword.conditional` - `@debug` -> `@keyword.debug` - `@exception` -> `@keyword.exception` - `@include` -> `@keyword.import` - `@repeat` -> `@keyword.repeat` * cleanup - remove some redundant `@conceal` (but still allow it for conceal-only patterns) - remove obsolete `@error` (syntax linting is out of scope for this repo) - sort, cleanup capture list in `CONTRIBUTING.md` | ||||
| * | fix(python): restrict typed parameter highlight | ObserverOfTime | 2023-12-14 | 1 | -1/+1 |
| | | | | | Only the name is a parameter and not the value | ||||
| * | fix(python): highlight variadic lambda parameters | ObserverOfTime | 2023-12-14 | 1 | -0/+6 |
| | | |||||
| * | feat(python): `@string.regex` capture, injection improvements (#5697) | Riley Bruins | 2023-11-21 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | | * feat(python): `@string.regex` capture, injection improvements * fix(python): match regex only for first argument of re module * chore(python): remove unneeded capture Co-authored-by: Santos Gallegos <stsewd@proton.me> * fix(python): only highlight string content itself as regex --------- Co-authored-by: Santos Gallegos <stsewd@proton.me> | ||||
| * | refactor: Remove all `(ERROR) @error` captures | Pham Huy Hoang | 2023-10-25 | 1 | -3/+0 |
| | | | | | | | | | | | | | As discussed in PR#5421, capturing `@error` is inconsistent, requiring deep nesting (or priority) in order to correctly have red backgrounds to it. Some queries has this capture, some don't. For consistency purposes, removing all of them is more preferable. For re-enabling error, either add `(ERROR) @error` or `(ERROR _ @error)` to your custom queries. | ||||
| * | feat(python): update parser & highlights | Amaan Qureshi | 2023-08-16 | 1 | -0/+3 |
| | | |||||
| * | fix(python,starlark): update parsers & add escape_interpolation | Amaan Qureshi | 2023-08-16 | 1 | -1/+4 |
| | | |||||
| * | fix(python): fields should not match uppercase-beginning names | Amaan Qureshi | 2023-04-29 | 1 | -1/+1 |
| | | |||||
| * | fix(python,starlark): builtin types should come after types | Amaan Qureshi | 2023-04-25 | 1 | -18/+18 |
| | | |||||
| * | feat(python,starlark): highlight type conversions as `@function.macro` | Amaan Qureshi | 2023-04-25 | 1 | -0/+2 |
| | | |||||
| * | fix(python,starlark): update field match pattern | Amaan Qureshi | 2023-04-25 | 1 | -3/+3 |
| | | |||||
| * | perf: remove match where possible | Amaan Qureshi | 2023-04-21 | 1 | -6/+6 |
| | | |||||
| * | fix(python): add object as `@type.builtin` | Anthony Shi | 2023-03-22 | 1 | -1/+1 |
| | | |||||
| * | feat: add `@string.documentation` where applicable | Amaan Qureshi | 2023-03-05 | 1 | -1/+12 |
| | | |||||
| * | feat!: add `@keyword.coroutine` capture | Amaan Qureshi | 2023-03-03 | 1 | -2/+5 |
| | | |||||
| * | Update highlights.scm for Python | Anthony Shi | 2023-03-02 | 1 | -0/+2 |
| | | | | Added new keywords "is not" and "not in" | ||||
| * | python(highlights): adapt query to parser change | Christian Clason | 2023-02-28 | 1 | -5/+1 |
| | | |||||
| * | highlights(python): fix captures | ObserverOfTime | 2022-11-26 | 1 | -9/+38 |
| | | |||||
| * | highlights(python): add "except*" | Stephan Seitz | 2022-10-25 | 1 | -0/+1 |
| | | | | | | | Added in https://github.com/tree-sitter/tree-sitter-python/pull/176 About the feature https://realpython.com/python311-exception-groups/#exception-groups-and-except-in-python-311 | ||||
| * | highlights: use @preproc where appropriate | ObserverOfTime | 2022-10-15 | 1 | -0/+4 |
| | | |||||
| * | feat(spell): support more languages | Lewis Russell | 2022-09-26 | 1 | -2/+1 |
| | | |||||
| * | feat(spell): upstream spell queries from spellsitter | Lewis Russell | 2022-09-06 | 1 | -0/+4 |
| | | |||||
| * | Split func/method definition from calls in python highlighting query | lfenzo | 2022-08-03 | 1 | -2/+2 |
| | | |||||
| * | fix: keep cls variable highlighting consistent in class methods | Ryan Barth | 2022-06-14 | 1 | -10/+2 |
| | | |||||
| * | Python: highlight future import (#2936) | Santos Gallegos | 2022-05-13 | 1 | -0/+1 |
| | | | | | | * Python: highlight future import * Use constant.builtin | ||||
| * | Python: highlight raise from statement | Santos Gallegos | 2022-05-01 | 1 | -0/+2 |
| | | |||||
| * | fixup! highlights(python): highlight exception keywords | Ferdinand Ratajczak | 2022-04-07 | 1 | -4/+0 |
| | | |||||
| * | highlights(python): highlight exception keywords | Ferdinand Ratajczak | 2022-04-07 | 1 | -0/+11 |
| | | |||||
