my demo first config lua
This commit is contained in:
7
queries/php/highlights.scm
Normal file
7
queries/php/highlights.scm
Normal file
@@ -0,0 +1,7 @@
|
||||
;; extends
|
||||
|
||||
[
|
||||
"readonly"
|
||||
] @keyword.function
|
||||
|
||||
(declare_directive) @constant
|
||||
14
queries/php/injections.scm
Normal file
14
queries/php/injections.scm
Normal file
@@ -0,0 +1,14 @@
|
||||
;; extends
|
||||
(function_call_expression
|
||||
(
|
||||
(name) @_function (#eq? @_function "json_decode")
|
||||
(arguments (argument (string (string_value) @json )))
|
||||
)
|
||||
)
|
||||
|
||||
(function_call_expression
|
||||
(
|
||||
(name) @_function (#eq? @_function "render")
|
||||
(arguments (argument (nowdoc (nowdoc_body) @html )))
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user