diff options
| author | 2024-12-30 11:36:07 -0800 | |
|---|---|---|
| committer | 2024-12-30 11:36:07 -0800 | |
| commit | 2b3048fc8727a954d8afb9b6cf3292d1868eb7b6 (patch) | |
| tree | 542c7e9875c886e2ae95c23f57ca65054aa15f80 /oni-php/scripts | |
| parent | 233c57fc89be6ea3ef14a91d7fbb3e498ab76673 (diff) | |
| download | emacs-config-2b3048fc8727a954d8afb9b6cf3292d1868eb7b6.tar.gz emacs-config-2b3048fc8727a954d8afb9b6cf3292d1868eb7b6.zip | |
oni-php: find-php-class: Only match namespace at beginning of line
Diffstat (limited to 'oni-php/scripts')
| -rwxr-xr-x | oni-php/scripts/find-php-class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oni-php/scripts/find-php-class b/oni-php/scripts/find-php-class index 65f43fc..d8795c2 100755 --- a/oni-php/scripts/find-php-class +++ b/oni-php/scripts/find-php-class @@ -5,7 +5,7 @@ (let* ((class-name (cadr args)) (file-names (run/strings (find "." -type f -name ,(string-append class-name ".php") - -exec grep "namespace" "{}" ";") + -exec grep "^namespace" "{}" ";") (> 2 "/dev/null")))) (format #t "~s" (delete-duplicates |
