emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/scala-mode d4885ac 159/217: Use [[:space:]] instead of lit


From: ELPA Syncer
Subject: [nongnu] elpa/scala-mode d4885ac 159/217: Use [[:space:]] instead of literal space in syntax end/beggining of
Date: Sun, 29 Aug 2021 11:31:04 -0400 (EDT)

branch: elpa/scala-mode
commit d4885ac97e9f9e108727db8801945610e78b4466
Author: Ivan Malison <IvanMalison@gmail.com>
Commit: Ivan Malison <IvanMalison@gmail.com>

    Use [[:space:]] instead of literal space in syntax end/beggining of
    definition functions.
---
 scala-mode2-syntax.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scala-mode2-syntax.el b/scala-mode2-syntax.el
index ec74d54..80cc8cc 100644
--- a/scala-mode2-syntax.el
+++ b/scala-mode2-syntax.el
@@ -963,13 +963,13 @@ val a, b = (1, 2)
   (scala-syntax:go-to-pos
    (save-excursion
      (scala-syntax:movement-function-until-cond-function
-      (lambda () (or (looking-at " *[{=]")
+      (lambda () (or (looking-at "[[:space:]]*[{=]")
                     (looking-at scala-syntax:all-definition-re)))
       (lambda () (condition-case ex (scala-syntax:forward-sexp-or-next-line) 
('error nil)))))))
 
 (defun scala-syntax:handle-brace-equals-or-next ()
-  (cond ((looking-at " *{") (forward-sexp))
-       ((looking-at " *=") (scala-syntax:forward-sexp-or-next-line)
+  (cond ((looking-at "[[:space:]]*{") (forward-sexp))
+       ((looking-at "[[:space:]]*=") (scala-syntax:forward-sexp-or-next-line)
         (scala-syntax:handle-brace-equals-or-next))
        ((looking-at scala-syntax:all-definition-re) nil)
        (t (scala-syntax:forward-sexp-or-next-line)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]