branch: externals/csharp-mode commit 35d295d5b0e72432f6d05a88fa6626add98cab41 Author: Dino Chiesa <dpchi...@hotmail.com> Commit: Dino Chiesa <dpchi...@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))) ))