diff options
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/php.h | 17 | ||||
| -rw-r--r-- | queries/php.scm | 4 |
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 |
