fix(php): dynamic mode map interpolation error

Amend: 9073b24878
Close: #8448
Co-authored-by: ribaricplusplus <ribaricplusplus@users.noreply.github.com>
This commit is contained in:
Henrik Lissner
2025-08-29 17:56:55 +02:00
parent 702d976665
commit 31f5b60f5e

View File

@@ -42,9 +42,8 @@
:return "return"
:yield "use")
(let ((mode-hook (intern (format "%s-hook" mode)))
(mode-vars-hook (intern (format "%s-local-vars-hook" mode)))
(mode-map (symbol-value (intern (format "%s-map" mode)))))
(let ((mode-vars-hook (intern (format "%s-local-vars-hook" mode)))
(mode-map (intern (format "%s-map" mode))))
(sp-with-modes (ensure-list mode)
(sp-local-pair "<?" "?>" :post-handlers '(("| " "SPC" "=") ("||\n[i]" "RET") ("[d2]" "p")))
(sp-local-pair "<?php" "?>" :post-handlers '(("| " "SPC") ("||\n[i]" "RET"))))