@@ -177,24 +177,24 @@ keywords that can appear in method signatures, e.g. 'final' and
177177which will be the name of the method."
178178 (when (stringp visibility)
179179 (setq visibility (list visibility)))
180- (rx-form `(: line-start
181- (* (syntax whitespace))
182- ,@(if visibility
183- `((* (or " abstract" " final" " static" )
184- (+ (syntax whitespace)))
185- (or ,@visibility )
186- (+ (syntax whitespace))
187- (* (or " abstract" " final" " static" )
188- (+ (syntax whitespace))))
189- '((* (* (or " abstract" " final" " static"
190- " private" " protected" " public" )
191- (+ (syntax whitespace))))))
192- " function"
193- (+ (syntax whitespace))
194- (? " &" (* (syntax whitespace)))
195- (group (+ (or (syntax word) (syntax symbol))))
196- (* (syntax whitespace))
197- " (" )))
180+ (rx-to-string `(: line-start
181+ (* (syntax whitespace))
182+ ,@(if visibility
183+ `((* (or " abstract" " final" " static" )
184+ (+ (syntax whitespace)))
185+ (or ,@visibility )
186+ (+ (syntax whitespace))
187+ (* (or " abstract" " final" " static" )
188+ (+ (syntax whitespace))))
189+ '((* (* (or " abstract" " final" " static"
190+ " private" " protected" " public" )
191+ (+ (syntax whitespace))))))
192+ " function"
193+ (+ (syntax whitespace))
194+ (? " &" (* (syntax whitespace)))
195+ (group (+ (or (syntax word) (syntax symbol))))
196+ (* (syntax whitespace))
197+ " (" )))
198198
199199 (defun php-create-regexp-for-classlike (type )
200200 " Accepts a `TYPE' of a 'classlike' object as a string, such as
@@ -393,9 +393,8 @@ When `DOCUMENT-ROOT' is NIL, the document root is obtained from `ROUTER-OR-DIR'.
393393 (if (file-directory-p router-or-dir)
394394 router-or-dir
395395 (directory-file-name router-or-dir))))
396- (pattern (rx-form `(: bos ,(getenv " HOME" ))))
397- (short-dirname (replace-regexp-in-string pattern " ~" default-directory))
398- (short-filename (replace-regexp-in-string pattern " ~" router-or-dir))
396+ (short-dirname (abbreviate-file-name default-directory))
397+ (short-filename (abbreviate-file-name router-or-dir))
399398 (buf-name (format " php -S %s :%s -t %s %s "
400399 hostname
401400 port
0 commit comments