branch: elpa/nix-mode
commit c2725000ab749200dc936de79a655c1cd619cc71
Author: Jakub Piecuch <[email protected]>
Commit: Jakub Piecuch <[email protected]>

    Use pcase-exhaustive instead of pcase in nix-smie--skip-path
---
 nix-mode.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/nix-mode.el b/nix-mode.el
index e1dba6c1c9..7e7a952670 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -530,10 +530,9 @@ STRING-TYPE type of string based off of Emacs syntax table 
types"
 (defun nix-smie--skip-path (how)
   "Skip path related characters."
   (let ((start (point)))
-    (pcase how
+    (pcase-exhaustive how
       ('forward (skip-chars-forward nix-smie--path-chars))
-      ('backward (skip-chars-backward nix-smie--path-chars))
-      (_ (error "expected 'forward or 'backward")))
+      ('backward (skip-chars-backward nix-smie--path-chars)))
     (let ((sub (buffer-substring-no-properties start (point))))
       (if (string-match-p "/" sub)
           sub

Reply via email to