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

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

[elpa] externals/csharp-mode 35d295d 008/459: Fix a problem with parsing


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode 35d295d 008/459: Fix a problem with parsing in csharp-completion.el
Date: Sun, 22 Aug 2021 13:58:44 -0400 (EDT)

branch: externals/csharp-mode
commit 35d295d5b0e72432f6d05a88fa6626add98cab41
Author: Dino Chiesa <dpchiesa@hotmail.com>
Commit: Dino Chiesa <dpchiesa@hotmail.com>

    Fix a problem with parsing in csharp-completion.el
---
 csharp-completion.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/csharp-completion.el b/csharp-completion.el
index 2f7401d..d7f0def 100644
--- a/csharp-completion.el
+++ b/csharp-completion.el
@@ -1102,7 +1102,7 @@ returns nil.
           (cycle-count 0)
           (dot-count 0)
           m1
-          (regex "[-\\+\\*\\/%,;( })=\\.]")
+          (regex "[-\\+\\*\\/%,;( {})=\\.]")
           snip done
           (paren-depth 0)
           ;;           (skip-back '(lambda ()
@@ -1165,7 +1165,7 @@ returns nil.
 
            ((eq (char-after) ?.)
             (setq m1 (point)
-                  regex "[-\\+\\*\\/%,;( })=]"))
+                  regex "[-\\+\\*\\/%,;( {})=]"))
 
            (t
             (setq done t))))
@@ -1176,7 +1176,9 @@ returns nil.
         (incf cycle-count)) ;; count of steps backward
 
       (setq snip
-             (buffer-substring-no-properties (1+ (point)) opoint))
+            (cscomp-consolidate-whitespace
+             (buffer-substring-no-properties (1+ (point)) opoint)))
+
       (cscomp-log 2 "parse-expression-before-point: B snip(%s)" snip)
       (list (1+ (point)) (cscomp-split-by-dots snip)))
     ))



reply via email to

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