branch: elpa/nix-mode
commit bdd3c8a1e504ec547ae4bfa93d35cd41a0251604
Author: taku0 <mxxouy6x3m_git...@tatapa.org>
Commit: taku0 <mxxouy6x3m_git...@tatapa.org>

    Exclude braces from ffap pattern
    
    This makes ffap to handle paths in strings like this:
    "cp ${./foo.sh} $out/script/".
---
 nix-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nix-mode.el b/nix-mode.el
index 204f7ddb02..b0b0b77159 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -1021,7 +1021,7 @@ The hook `nix-mode-hook' is run when Nix mode is started.
 
   ;; Find file at point
   (push '(nix-mode . nix-mode-ffap-nixpkgs-path) ffap-alist)
-  (push '(nix-mode "--:\\\\${}<>+@-Z_[:alpha:]~*?" "@" "@;.,!:")
+  (push '(nix-mode "--:\\\\$<>+@-Z_[:alpha:]~*?" "@" "@;.,!:")
         ffap-string-at-point-mode-alist))
 
 ;;;###autoload

Reply via email to