Skip to content

Commit 34fc893

Browse files
author
Bastian Bechtold
committed
adds missing token otherwise for indentation check
1 parent a20ef11 commit 34fc893

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

check.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ function print_report(report, indentation, filename)
848848
% `events`, `properties`, `enumeration`, `methods`,
849849
% `function`.
850850
% - Dedent for `end`
851-
% - Dedent momentarily for `else`, `elseif`, `case`.
851+
% - Dedent momentarily for `else`, `elseif`, `case`, `otherwise`.
852852
% - Comments are allowed to be indented one level out, and any amount of
853853
% deeper indentation than the source code.
854854
% - Continuation lines must be indented deeper than the surrounding
@@ -961,7 +961,7 @@ function print_report(report, indentation, filename)
961961
beginnings = {'for' 'parfor' 'while' 'if' 'switch' 'classdef' ...
962962
'events' 'properties' 'enumeration' 'methods' ...
963963
'function'};
964-
middles = {'else' 'elseif' 'case'};
964+
middles = {'else' 'elseif' 'case' 'otherwise'};
965965

966966
% deactivate function file rules in class files:
967967
if first_token.isEqual('keyword', 'classdef')

0 commit comments

Comments
 (0)