aboutsummaryrefslogtreecommitdiffstats
path: root/queries/php/highlights.scm
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-121-1/+0
|
* feat: add the php_only parser included in tree-sitter-php (#5876)tk-shirasaka2024-01-201-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 formattingPham Huy Hoang2024-01-191-139/+191
|
* feat!: align standard captures with upstreamChristian Clason2024-01-191-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` capturesPham Huy Hoang2023-10-251-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)nsfisis2023-10-141-0/+1
|
* fix(php): heredocs injections & highlightsObserverOfTime2023-08-121-0/+8
|
* queries/*/highlights.scm : remove `@spell` for stringsShellCode332023-08-071-1/+1
|
* highlights(php): use `lua-match?`Ananda Umamil2023-02-121-2/+2
| | | | Co-authored-by: Stephan Seitz <stephan.seitz@fau.de>
* highlights(php): remove typedef capture from `as`Ananda Umamil2023-02-121-1/+1
|
* highlights(php): fix `@constant` queriesAnanda Umamil2023-02-121-7/+9
|
* highlights(php): fix queries related to namespacesAnanda Umamil2023-02-121-11/+22
|
* highlights(php): `instanceof` operandAnanda Umamil2023-01-281-0/+3
|
* Use `@parameter` captureAnanda Umamil2023-01-281-1/+1
|
* Apply the suggestion from @Lucario387Ananda Umamil2023-01-281-3/+1
| | | Co-authored-by: Lucario387 <hoangtun0810@gmail.com>
* highlights(php): declare directives and `:`Ananda Umamil2023-01-281-0/+7
|
* highlights(php): use more specific groupsObserverOfTime2022-11-261-7/+10
|
* improve php variables and $this highlightsNikita Sklyarov2022-11-251-3/+2
|
* highlights(php): add spellLaytan Laats2022-09-261-2/+2
|
* Split func/method definition from calls in several programming language querieslfenzo2022-08-031-4/+4
|
* highlights(php): highlight more string types and escapes (#3226)Matty Patatty2022-07-271-2/+4
|
* highlights(php): highlight readonly keywordshirasaka2022-06-041-0/+1
|
* highlights(php): improve highlight for attributesnsfisis2022-05-131-0/+4
|
* highlights(php): argument name as parameterWilman Barrios2022-03-171-0/+3
|
* highlights(php): add namespace aliasing name as typeWilman Barrios2022-02-261-0/+1
|
* highlights(php): highlight use declaration name as typeWilman Barrios2022-02-191-0/+2
|
* highlights(php): highlight traits names as typeWilman Barrios2022-02-191-0/+2
|
* fix(php) match magic and single letter constantsMichael Härtl2022-01-191-1/+3
|
* highlights(php): detect constructor calls on instantiationMichael Härtl2022-01-171-5/+7
|
* fix(php): change query for @constructor groupInfectos2022-01-161-2/+3
|
* highlights(php): fix and add missing highlightsMichael Härtl2022-01-151-7/+61
|
* PHP: highlight unsetSantos Gallegos2021-12-231-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 matchLewis Russell2021-11-231-1/+1
| | | | as string.find is much quicker than vim.regex:match*
* Fix method access using php nullsafe operator (#1773)Wilman Barrios2021-08-301-0/+3
|
* highlights(php): add missings operators `?->` and `=>` (#1729)Wilman Barrios2021-08-261-0/+3
| | | | | | This will: - add nullsafe `?->` as `@operator` - add separator for associative arrays `=>` as `@operator`
* highlights(php): add `instanceof` as `@keyword` (#1728)Wilman Barrios2021-08-211-0/+1
|
* feat(keywords) merge return and yield into keyword.return groupantonk522021-07-041-3/+1
|
* feat(keywords) add keyword.return & keyword.yieldantonk522021-07-041-1/+4
|
* Add support for `match` expression in PHP (#1482)Wilman Barrios2021-07-041-0/+1
|
* Adds support for PHP's arrow funcion (#1427)tk-shirasaka2021-06-281-2/+9
| | | Co-authored-by: shirasaka <shirasaka@n-create.co.jp>
* fix(php): highlights function call expressionelianiva2021-05-191-0/+3
|
* Update queries/php/highlights.scmStephan Seitz2021-05-171-2/+2
| | | Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
* highlights/locals(php): rename type_name -> named_typeStephan Seitz2021-05-171-1/+2
|
* Fix #307: Use and document TSVariable/TSVariableBuiltin in all languagesStephan Seitz2020-09-141-0/+4
|
* fix(queries): use vim-match for non lua regexesSteven Sojka2020-08-161-1/+1
|
* PHP: Update locals queryShirasaka2020-08-051-0/+1
|
* Add PHP, TOML, and update HTML, javascript queriesShirasaka2020-08-041-0/+191
- PHP : Add highlights and locals query - TOML : Add highlights and locals query - HTML : Add scope - javascript : Add some scopes