aboutsummaryrefslogtreecommitdiffstats
path: root/queries/php
diff options
context:
space:
mode:
authorAriel D'Alessandro <dalessandro.ariel@gmail.com>2022-09-25 21:07:56 +0200
committerAriel D'Alessandro <dalessandro.ariel@gmail.com>2022-09-25 21:07:56 +0200
commit4457e657255ba071497b30356676a42f6f184cdf (patch)
tree5d82e7c3a56b6ba31ee7dd0d4a2571614f66a3ad /queries/php
parentc39162ed9d98f877eba72a36cc2dccb7451feb7c (diff)
downloadnvim-conf-4457e657255ba071497b30356676a42f6f184cdf.tar.gz
nvim-conf-4457e657255ba071497b30356676a42f6f184cdf.zip
add new php query to highlight json decode and implement custom neotest php-unit
Diffstat (limited to 'queries/php')
-rw-r--r--queries/php/injections.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/queries/php/injections.scm b/queries/php/injections.scm
new file mode 100644
index 0000000..3f809f7
--- /dev/null
+++ b/queries/php/injections.scm
@@ -0,0 +1,6 @@
+(function_call_expression
+ (
+ (name) @_function (#eq? @_function "json_decode")
+ (arguments (argument (string (string_value) @json )))
+ )
+)