summaryrefslogtreecommitdiff
path: root/queries/php
AgeCommit message (Collapse)Author
2022-10-28Add regex injections for php (#3592)gbprod
2022-10-12feat(php): add queries for bash injectionsgbprod
This commit allows to inject bash syntax into relevant function arguments and shell expression.
2022-10-12feat(php): improve php foldsgbprod
2022-10-10fix(php): add indent for enumsgbprod
2022-10-06Fix php indent for short array declarationgbprod
2022-09-26highlights(php): add spellLaytan Laats
2022-08-03Split func/method definition from calls in several programming language querieslfenzo
2022-07-27highlights(php): highlight more string types and escapes (#3226)Matty Patatty
2022-06-04highlights(php): highlight readonly keywordshirasaka
2022-05-15indents(php): @auto on comment and ERRORprzepompownia
Currently with ```vim setlocal autoindent setlocal smartindent ``` in `after/indent/php.vim` it allows correct indentation inside PHP docblocks.
2022-05-13highlights(php): improve highlight for attributesnsfisis
2022-03-17highlights(php): argument name as parameterWilman Barrios
2022-02-26highlights(php): add namespace aliasing name as typeWilman Barrios
2022-02-19highlights(php): highlight use declaration name as typeWilman Barrios
2022-02-19highlights(php): highlight traits names as typeWilman Barrios
2022-02-13indents(php): don't use aligned_indent for phpStephan Seitz
Fixes #2497
2022-02-05indents(php): add another testStephan Seitz
2022-01-24indents(php): align with C indentationStephan Seitz
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/2357
2022-01-20parsers: add phpdoc parser (experimental)Michael Härtl
2022-01-19fix(php) match magic and single letter constantsMichael Härtl
2022-01-17highlights(php): detect constructor calls on instantiationMichael Härtl
2022-01-16fix(php): change query for @constructor groupInfectos
2022-01-15highlights(php): fix and add missing highlightsMichael Härtl
2021-12-23PHP: highlight unsetSantos Gallegos
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
2021-11-23Prefer lua-match over matchLewis Russell
as string.find is much quicker than vim.regex:match*
2021-08-30Fix method access using php nullsafe operator (#1773)Wilman Barrios
2021-08-26highlights(php): add missings operators `?->` and `=>` (#1729)Wilman Barrios
This will: - add nullsafe `?->` as `@operator` - add separator for associative arrays `=>` as `@operator`
2021-08-21highlights(php): add `instanceof` as `@keyword` (#1728)Wilman Barrios
2021-07-04feat(keywords) merge return and yield into keyword.return groupantonk52
2021-07-04feat(keywords) add keyword.return & keyword.yieldantonk52
2021-07-04Add support for `match` expression in PHP (#1482)Wilman Barrios
2021-06-28Adds support for PHP's arrow funcion (#1427)tk-shirasaka
Co-authored-by: shirasaka <shirasaka@n-create.co.jp>
2021-05-19fix(php): highlights function call expressionelianiva
2021-05-17Update queries/php/highlights.scmStephan Seitz
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
2021-05-17highlights/locals(php): rename type_name -> named_typeStephan Seitz
2021-05-07Revert "Comment: use `@combined` to create just one tree per buffer (#1252)"Santos Gallegos
This reverts commit 4a7a713c527f57c355bc817f16fc6d955b8cce9b.
2021-04-28Comment: use `@combined` to create just one tree per buffer (#1252)Santos Gallegos
* Comment: use `@combined` to create just one tree per buffer There is no need to create a tree per line/block for comments. Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251 * Add injections for scss * Fix jsonc * Combine jsdoc
2021-03-22Add indents for phpshirasaka
2021-03-16Mark several invalid queriesStephan Seitz
2021-03-12Add comment parser to highlight comment tags (#893)Santos Gallegos
Closes #236
2020-11-24Add injections to PHPshirasaka
2020-09-14Fix #307: Use and document TSVariable/TSVariableBuiltin in all languagesStephan Seitz
2020-09-14Folds: rename query files to folds.scm to be consistentSantos Gallegos
We use plural names for all query files except folds.
2020-09-12Update PHP queryShirasaka
2020-09-11ci: fix wrong queriesThomas Vigouroux
2020-08-16fix(queries): use vim-match for non lua regexesSteven Sojka
2020-08-05PHP: Update locals queryShirasaka
2020-08-04Add PHP, TOML, and update HTML, javascript queriesShirasaka
- PHP : Add highlights and locals query - TOML : Add highlights and locals query - HTML : Add scope - javascript : Add some scopes