mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
Add regex injections for php (#3592)
This commit is contained in:
parent
3cab7b4346
commit
287ffdccc1
1 changed files with 7 additions and 1 deletions
|
|
@ -2,6 +2,13 @@
|
||||||
|
|
||||||
(comment) @phpdoc
|
(comment) @phpdoc
|
||||||
|
|
||||||
|
;; regex
|
||||||
|
|
||||||
|
((function_call_expression
|
||||||
|
function: (_) @_preg_func_identifier
|
||||||
|
arguments: (arguments . (argument (_ (string_value) @regex))))
|
||||||
|
(#lua-match? @_preg_func_identifier "^preg_"))
|
||||||
|
|
||||||
;; bash
|
;; bash
|
||||||
|
|
||||||
((function_call_expression
|
((function_call_expression
|
||||||
|
|
@ -11,4 +18,3 @@
|
||||||
"escapeshellcmd" "exec" "passthru" "proc_open" "shell_exec" "system"))
|
"escapeshellcmd" "exec" "passthru" "proc_open" "shell_exec" "system"))
|
||||||
|
|
||||||
((expression_statement (shell_command_expression (string_value) @bash)))
|
((expression_statement (shell_command_expression (string_value) @bash)))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue