branch: elpa/d-mode
commit 51b1af1e9db9f822ca4ac3ced8b60ef4c76b51e3
Author: Vladimir Panteleev <[email protected]>
Commit: Vladimir Panteleev <[email protected]>
Fix K&R region detection and body-less function declarations
---
d-mode.el | 4 ++--
tests/I0058.d | 4 ++++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/d-mode.el b/d-mode.el
index 064d76c..c93e2cc 100644
--- a/d-mode.el
+++ b/d-mode.el
@@ -7,7 +7,7 @@
;; Maintainer: Russel Winder <[email protected]>
;; Vladimir Panteleev <[email protected]>
;; Created: March 2007
-;; Version: 201909051350
+;; Version: 201909051403
;; Keywords: D programming language emacs cc-mode
;; Package-Requires: ((emacs "24.3"))
@@ -1024,7 +1024,7 @@ Key bindings:
(catch 'knr
(while (> pp-count-out 0) ; go back one paren/bracket pair each time.
(setq pp-count-out (1- pp-count-out))
- (c-syntactic-skip-backward "^)]}=")
+ (c-syntactic-skip-backward "^)]}=;")
(cond ((eq (char-before) ?\))
(setq after-rparen (point)))
((eq (char-before) ?\])
diff --git a/tests/I0058.d b/tests/I0058.d
index 4f911db..8ad6833 100644
--- a/tests/I0058.d
+++ b/tests/I0058.d
@@ -33,3 +33,7 @@ body
{
return b;
}
+
+
+int fun() @nogc;
+int bar;