File tree 3 files changed +27
-1
lines changed
3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ In chronological order:
306
306
64 . l3msh0
307
307
65 . [ Hernawan Fa'iz Abdillah] ( https://github.com/Abdillah )
308
308
66 . [ Sebastian Wiesner] ( https://github.com/lunaryorn )
309
-
309
+ 67 . [ Michael Stolovitzsky ] ( https://github.com/emestee )
310
310
311
311
312
312
[ wiki ] : https://github.com/ejmr/php-mode/wiki
Original file line number Diff line number Diff line change @@ -483,6 +483,13 @@ style from Drupal."
483
483
(should-not (eq 'font-lock-type-face
484
484
(get-text-property (point ) 'face ))))))
485
485
486
+ (ert-deftest php-mode-test-issue-200 ()
487
+ " Test highlighting and elimination of extraneous whitespace in PSR-2 mode"
488
+ (with-php-mode-test (" issue-200.php" )
489
+ (php-mode-custom-coding-style-set 'php-mode-coding-style 'psr2 )
490
+ (should show-trailing-whitespace)
491
+ (should (and (listp before-save-hook) (member 'delete-trailing-whitespace before-save-hook)))))
492
+
486
493
(ert-deftest php-mode-test-issue-201 ()
487
494
" Test highlighting of special variables"
488
495
(with-php-mode-test (" issue-201.php" )
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /**
4
+ * GitHub Issue: https://github.com/ejmr/php-mode/issues/200
5
+ *
6
+ * There are extra whitespaces in the code below. In PSR-2 mode, those must be
7
+ * highlighted and stripped upon save (be careful when editing and saving,
8
+ * then)
9
+ */
10
+
11
+ class Foo
12
+ {
13
+ public function test ()
14
+ {
15
+
16
+ }
17
+ }
18
+
19
+
You can’t perform that action at this time.
0 commit comments