summaryrefslogtreecommitdiff
path: root/queries
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 23:45:20 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 23:45:20 +0100
commit8ab1da7853f6dd309f2d3677ca109737f929ab4a (patch)
tree8afa3fafa23badd9b99aca51fce05a15ee7c2f48 /queries
parentdcacc00e3750300617ba6e16eb346713f91a783a (diff)
downloadcrep-8ab1da7853f6dd309f2d3677ca109737f929ab4a.tar.gz
Add PHP support
Diffstat (limited to 'queries')
-rw-r--r--queries/php.h17
-rw-r--r--queries/php.scm4
2 files changed, 21 insertions, 0 deletions
diff --git a/queries/php.h b/queries/php.h
new file mode 100644
index 0000000..91bc17f
--- /dev/null
+++ b/queries/php.h
@@ -0,0 +1,17 @@
+unsigned char query_php[] = {
+ 0x28, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65,
+ 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x28, 0x6e, 0x61,
+ 0x6d, 0x65, 0x29, 0x20, 0x40, 0x66, 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x20,
+ 0x40, 0x66, 0x74, 0x79, 0x70, 0x65, 0x0a, 0x28, 0x6d, 0x65, 0x74, 0x68,
+ 0x6f, 0x64, 0x5f, 0x64, 0x65, 0x63, 0x6c, 0x61, 0x72, 0x61, 0x74, 0x69,
+ 0x6f, 0x6e, 0x20, 0x28, 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x20, 0x40, 0x66,
+ 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x20, 0x40, 0x66, 0x74, 0x79, 0x70, 0x65,
+ 0x0a, 0x28, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x64, 0x65, 0x63, 0x6c,
+ 0x61, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x28, 0x6e, 0x61, 0x6d,
+ 0x65, 0x29, 0x20, 0x40, 0x66, 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x20, 0x40,
+ 0x66, 0x74, 0x79, 0x70, 0x65, 0x0a, 0x28, 0x63, 0x6f, 0x6e, 0x73, 0x74,
+ 0x5f, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x28, 0x6e, 0x61,
+ 0x6d, 0x65, 0x29, 0x20, 0x40, 0x66, 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x20,
+ 0x40, 0x66, 0x74, 0x79, 0x70, 0x65
+};
+unsigned int query_php_len = 162;
diff --git a/queries/php.scm b/queries/php.scm
new file mode 100644
index 0000000..c41bd1c
--- /dev/null
+++ b/queries/php.scm
@@ -0,0 +1,4 @@
+(function_definition (name) @fname) @ftype
+(method_declaration (name) @fname) @ftype
+(class_declaration (name) @fname) @ftype
+(const_element (name) @fname) @ftype \ No newline at end of file