| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | feat!: drop modules, general refactor and cleanup | Christian Clason | 2025-05-12 | 1 | -1/+0 |
| | | |||||
| * | feat: add the php_only parser included in tree-sitter-php (#5876) | tk-shirasaka | 2024-01-20 | 1 | -373/+1 |
| | | | | | | | | | Add parser `php_only` for PHP files without HTML embedded. Make queries for combined parser `php` inherit from `php_only` (no extensions needed). --------- Co-authored-by: shirasaka <tk.shirasaka@gmail> | ||||
| * | chore: query formatting | Pham Huy Hoang | 2024-01-19 | 1 | -139/+191 |
| | | |||||
| * | feat!: align standard captures with upstream | Christian Clason | 2024-01-19 | 1 | -14/+14 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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` | ||||
| * | refactor: Remove all `(ERROR) @error` captures | Pham Huy Hoang | 2023-10-25 | 1 | -2/+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. | ||||
| * | fix(php): highlight `never` as `@type.builtin` (#5522) | nsfisis | 2023-10-14 | 1 | -0/+1 |
| | | |||||
| * | fix(php): heredocs injections & highlights | ObserverOfTime | 2023-08-12 | 1 | -0/+8 |
| | | |||||
| * | queries/*/highlights.scm : remove `@spell` for strings | ShellCode33 | 2023-08-07 | 1 | -1/+1 |
| | | |||||
| * | highlights(php): use `lua-match?` | Ananda Umamil | 2023-02-12 | 1 | -2/+2 |
| | | | | | Co-authored-by: Stephan Seitz <stephan.seitz@fau.de> | ||||
| * | highlights(php): remove typedef capture from `as` | Ananda Umamil | 2023-02-12 | 1 | -1/+1 |
| | | |||||
| * | highlights(php): fix `@constant` queries | Ananda Umamil | 2023-02-12 | 1 | -7/+9 |
| | | |||||
| * | highlights(php): fix queries related to namespaces | Ananda Umamil | 2023-02-12 | 1 | -11/+22 |
| | | |||||
| * | highlights(php): `instanceof` operand | Ananda Umamil | 2023-01-28 | 1 | -0/+3 |
| | | |||||
| * | Use `@parameter` capture | Ananda Umamil | 2023-01-28 | 1 | -1/+1 |
| | | |||||
| * | Apply the suggestion from @Lucario387 | Ananda Umamil | 2023-01-28 | 1 | -3/+1 |
| | | | | Co-authored-by: Lucario387 <hoangtun0810@gmail.com> | ||||
| * | highlights(php): declare directives and `:` | Ananda Umamil | 2023-01-28 | 1 | -0/+7 |
| | | |||||
| * | highlights(php): use more specific groups | ObserverOfTime | 2022-11-26 | 1 | -7/+10 |
| | | |||||
| * | improve php variables and $this highlights | Nikita Sklyarov | 2022-11-25 | 1 | -3/+2 |
| | | |||||
| * | highlights(php): add spell | Laytan Laats | 2022-09-26 | 1 | -2/+2 |
| | | |||||
| * | Split func/method definition from calls in several programming language queries | lfenzo | 2022-08-03 | 1 | -4/+4 |
| | | |||||
| * | highlights(php): highlight more string types and escapes (#3226) | Matty Patatty | 2022-07-27 | 1 | -2/+4 |
| | | |||||
| * | highlights(php): highlight readonly keyword | shirasaka | 2022-06-04 | 1 | -0/+1 |
| | | |||||
| * | highlights(php): improve highlight for attributes | nsfisis | 2022-05-13 | 1 | -0/+4 |
| | | |||||
| * | highlights(php): argument name as parameter | Wilman Barrios | 2022-03-17 | 1 | -0/+3 |
| | | |||||
| * | highlights(php): add namespace aliasing name as type | Wilman Barrios | 2022-02-26 | 1 | -0/+1 |
| | | |||||
| * | highlights(php): highlight use declaration name as type | Wilman Barrios | 2022-02-19 | 1 | -0/+2 |
| | | |||||
| * | highlights(php): highlight traits names as type | Wilman Barrios | 2022-02-19 | 1 | -0/+2 |
| | | |||||
| * | fix(php) match magic and single letter constants | Michael Härtl | 2022-01-19 | 1 | -1/+3 |
| | | |||||
| * | highlights(php): detect constructor calls on instantiation | Michael Härtl | 2022-01-17 | 1 | -5/+7 |
| | | |||||
| * | fix(php): change query for @constructor group | Infectos | 2022-01-16 | 1 | -2/+3 |
| | | |||||
| * | highlights(php): fix and add missing highlights | Michael Härtl | 2022-01-15 | 1 | -7/+61 |
| | | |||||
| * | PHP: highlight unset | Santos Gallegos | 2021-12-23 | 1 | -0/+1 |
| | | | | | | | Similar to https://github.com/tree-sitter/tree-sitter-php/blob/57f855461aeeca73bd4218754fb26b5ac143f98f/grammar.js#L130-L132 Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/2156 | ||||
| * | Prefer lua-match over match | Lewis Russell | 2021-11-23 | 1 | -1/+1 |
| | | | | | as string.find is much quicker than vim.regex:match* | ||||
| * | Fix method access using php nullsafe operator (#1773) | Wilman Barrios | 2021-08-30 | 1 | -0/+3 |
| | | |||||
| * | highlights(php): add missings operators `?->` and `=>` (#1729) | Wilman Barrios | 2021-08-26 | 1 | -0/+3 |
| | | | | | | | This will: - add nullsafe `?->` as `@operator` - add separator for associative arrays `=>` as `@operator` | ||||
| * | highlights(php): add `instanceof` as `@keyword` (#1728) | Wilman Barrios | 2021-08-21 | 1 | -0/+1 |
| | | |||||
| * | feat(keywords) merge return and yield into keyword.return group | antonk52 | 2021-07-04 | 1 | -3/+1 |
| | | |||||
| * | feat(keywords) add keyword.return & keyword.yield | antonk52 | 2021-07-04 | 1 | -1/+4 |
| | | |||||
| * | Add support for `match` expression in PHP (#1482) | Wilman Barrios | 2021-07-04 | 1 | -0/+1 |
| | | |||||
| * | Adds support for PHP's arrow funcion (#1427) | tk-shirasaka | 2021-06-28 | 1 | -2/+9 |
| | | | | Co-authored-by: shirasaka <shirasaka@n-create.co.jp> | ||||
| * | fix(php): highlights function call expression | elianiva | 2021-05-19 | 1 | -0/+3 |
| | | |||||
| * | Update queries/php/highlights.scm | Stephan Seitz | 2021-05-17 | 1 | -2/+2 |
| | | | | Co-authored-by: Santos Gallegos <stsewd@protonmail.com> | ||||
| * | highlights/locals(php): rename type_name -> named_type | Stephan Seitz | 2021-05-17 | 1 | -1/+2 |
| | | |||||
| * | Fix #307: Use and document TSVariable/TSVariableBuiltin in all languages | Stephan Seitz | 2020-09-14 | 1 | -0/+4 |
| | | |||||
| * | fix(queries): use vim-match for non lua regexes | Steven Sojka | 2020-08-16 | 1 | -1/+1 |
| | | |||||
| * | PHP: Update locals query | Shirasaka | 2020-08-05 | 1 | -0/+1 |
| | | |||||
| * | Add PHP, TOML, and update HTML, javascript queries | Shirasaka | 2020-08-04 | 1 | -0/+191 |
| - PHP : Add highlights and locals query - TOML : Add highlights and locals query - HTML : Add scope - javascript : Add some scopes | |||||
