Wilman Barrios
fd92e70c69
highlights(php): argument name as parameter
2022-03-17 21:09:15 +01:00
Wilman Barrios
689a078f91
highlights(php): add namespace aliasing name as type
2022-02-26 16:05:22 +01:00
Wilman Barrios
6d44cc06f4
highlights(php): highlight use declaration name as type
2022-02-19 20:00:31 +01:00
Wilman Barrios
c0783485e8
highlights(php): highlight traits names as type
2022-02-19 18:26:05 +01:00
Stephan Seitz
3fbf280e34
indents(php): don't use aligned_indent for php
...
Fixes #2497
2022-02-13 12:19:54 +01:00
Stephan Seitz
992926ab99
indents(php): add another test
2022-02-05 18:54:55 +01:00
Stephan Seitz
ae4c982f94
indents(php): align with C indentation
...
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/2357
2022-01-24 22:33:41 +01:00
Michael Härtl
d7c4ae886d
parsers: add phpdoc parser (experimental)
2022-01-20 15:37:44 +01:00
Michael Härtl
983c46d55c
fix(php) match magic and single letter constants
2022-01-19 19:17:01 +01:00
Michael Härtl
723d91e821
highlights(php): detect constructor calls on instantiation
2022-01-17 21:38:40 +01:00
Infectos
1da55c27cc
fix(php): change query for @constructor group
2022-01-16 12:02:24 +01:00
Michael Härtl
749f72d351
highlights(php): fix and add missing highlights
2022-01-15 12:32:03 +01:00
Santos Gallegos
9025d96159
PHP: highlight unset
...
Similar to 57f855461a/grammar.js (L130-L132)
Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/2156
2021-12-23 21:02:51 +01:00
Lewis Russell
011ac894ec
Prefer lua-match over match
...
as string.find is much quicker than vim.regex:match*
2021-11-23 10:02:06 +01:00
Wilman Barrios
6cd6a29213
Fix method access using php nullsafe operator ( #1773 )
2021-08-30 22:06:09 -05:00
Wilman Barrios
1e4c846d01
highlights(php): add missings operators ?-> and => ( #1729 )
...
This will:
- add nullsafe `?->` as `@operator`
- add separator for associative arrays `=>` as `@operator`
2021-08-26 12:15:09 -05:00
Wilman Barrios
af96150a2d
highlights(php): add instanceof as @keyword ( #1728 )
2021-08-21 05:05:01 +00:00
antonk52
90f15d9bf7
feat(keywords) merge return and yield into keyword.return group
2021-07-04 21:49:17 +02:00
antonk52
bd9095e969
feat(keywords) add keyword.return & keyword.yield
2021-07-04 21:49:17 +02:00
Wilman Barrios
486c86f1cd
Add support for match expression in PHP ( #1482 )
2021-07-04 12:52:29 -05:00
tk-shirasaka
fe47dbe02b
Adds support for PHP's arrow funcion ( #1427 )
...
Co-authored-by: shirasaka <shirasaka@n-create.co.jp>
2021-06-28 10:10:58 -05:00
elianiva
88bd7f5cb3
fix(php): highlights function call expression
2021-05-19 19:41:21 +02:00
Stephan Seitz
4dcc3fb4b3
Update queries/php/highlights.scm
...
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
2021-05-17 13:27:58 +02:00
Stephan Seitz
fe8264e3f6
highlights/locals(php): rename type_name -> named_type
2021-05-17 13:27:58 +02:00
Santos Gallegos
67f0857015
Revert "Comment: use @combined to create just one tree per buffer ( #1252 )"
...
This reverts commit 4a7a713c52 .
2021-05-07 16:51:57 +02:00
Santos Gallegos
4a7a713c52
Comment: use @combined to create just one tree per buffer ( #1252 )
...
* 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-04-28 07:19:07 -05:00
shirasaka
71e3391a8c
Add indents for php
2021-03-22 18:02:10 +01:00
Stephan Seitz
6cd211f647
Mark several invalid queries
2021-03-16 18:52:43 +01:00
Santos Gallegos
e4083fc8e1
Add comment parser to highlight comment tags ( #893 )
...
Closes #236
2021-03-12 11:21:46 -05:00
shirasaka
1b7cfc1b71
Add injections to PHP
2020-11-24 08:03:16 +01:00
Stephan Seitz
bcf421b4e7
Fix #307 : Use and document TSVariable/TSVariableBuiltin in all languages
2020-09-14 18:27:20 +02:00
Santos Gallegos
50991e370b
Folds: rename query files to folds.scm to be consistent
...
We use plural names for all query files except folds.
2020-09-14 18:26:30 +02:00
Shirasaka
8be4fb059e
Update PHP query
2020-09-12 13:15:48 +02:00
Thomas Vigouroux
b90e520ccd
ci: fix wrong queries
2020-09-11 12:02:35 +02:00
Steven Sojka
ce43dbf54c
fix(queries): use vim-match for non lua regexes
2020-08-16 18:31:56 +02:00
Shirasaka
dccc250add
PHP: Update locals query
2020-08-05 21:28:50 +02:00
Shirasaka
f372e2ab87
Add PHP, TOML, and update HTML, javascript queries
...
- PHP : Add highlights and locals query
- TOML : Add highlights and locals query
- HTML : Add scope
- javascript : Add some scopes
2020-08-04 08:05:51 +02:00