File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 93
93
(if (and (= emacs-major-version 24 ) (>= emacs-minor-version 4 ))
94
94
(require 'cl )))
95
95
96
+ ; ; Work around https://github.com/ejmr/php-mode/issues/310.
97
+ ; ;
98
+ ; ; In emacs 24.4 and 24.5, lines after functions with a return type
99
+ ; ; are incorrectly analyzed as member-init-cont.
100
+ ; ;
101
+ ; ; Before emacs 24.4, c member initializers are not supported this
102
+ ; ; way. Starting from emacs 25.1, cc-mode only detects member
103
+ ; ; initializers when the major mode is c++-mode.
104
+ (eval-and-compile
105
+ (if (and (= emacs-major-version 24 ) (or (= emacs-minor-version 4 )
106
+ (= emacs-minor-version 5 )))
107
+ (defun c-back-over-member-initializers ()
108
+ ; ; Override of cc-engine.el, cc-mode in emacs 24.3 and 24.4 are too
109
+ ; ; optimistic in recognizing c member initializers. Since we don't
110
+ ; ; need it in php-mode, just return nil.
111
+ nil )))
112
+
96
113
97
114
; ; Local variables
98
115
;;;### autoload
You can’t perform that action at this time.
0 commit comments