mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
|
||||
|
||||
;; regex
|
||||
|
||||
((function_call_expression
|
||||
function: (_) @_preg_func_identifier
|
||||
arguments: (arguments . (argument (_ (string_value) @regex))))
|
||||
(#lua-match? @_preg_func_identifier "^preg_"))
|
||||
|
||||
;; bash
|
||||
|
||||
((function_call_expression
|
||||
|
|
@ -11,4 +18,3 @@
|
|||
"escapeshellcmd" "exec" "passthru" "proc_open" "shell_exec" "system"))
|
||||
|
||||
((expression_statement (shell_command_expression (string_value) @bash)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue