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 @@ | |||
| 1 | unsigned char query_php[] = { | ||
| 2 | 0x28, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x65, | ||
| 3 | 0x66, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x28, 0x6e, 0x61, | ||
| 4 | 0x6d, 0x65, 0x29, 0x20, 0x40, 0x66, 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x20, | ||
| 5 | 0x40, 0x66, 0x74, 0x79, 0x70, 0x65, 0x0a, 0x28, 0x6d, 0x65, 0x74, 0x68, | ||
| 6 | 0x6f, 0x64, 0x5f, 0x64, 0x65, 0x63, 0x6c, 0x61, 0x72, 0x61, 0x74, 0x69, | ||
| 7 | 0x6f, 0x6e, 0x20, 0x28, 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x20, 0x40, 0x66, | ||
| 8 | 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x20, 0x40, 0x66, 0x74, 0x79, 0x70, 0x65, | ||
| 9 | 0x0a, 0x28, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x64, 0x65, 0x63, 0x6c, | ||
| 10 | 0x61, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x28, 0x6e, 0x61, 0x6d, | ||
| 11 | 0x65, 0x29, 0x20, 0x40, 0x66, 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x20, 0x40, | ||
| 12 | 0x66, 0x74, 0x79, 0x70, 0x65, 0x0a, 0x28, 0x63, 0x6f, 0x6e, 0x73, 0x74, | ||
| 13 | 0x5f, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x20, 0x28, 0x6e, 0x61, | ||
| 14 | 0x6d, 0x65, 0x29, 0x20, 0x40, 0x66, 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x20, | ||
| 15 | 0x40, 0x66, 0x74, 0x79, 0x70, 0x65 | ||
| 16 | }; | ||
| 17 | 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 @@ | |||
| 1 | (function_definition (name) @fname) @ftype | ||
| 2 | (method_declaration (name) @fname) @ftype | ||
| 3 | (class_declaration (name) @fname) @ftype | ||
| 4 | (const_element (name) @fname) @ftype \ No newline at end of file | ||
