Skip to content

Commit 726f6b4

Browse files
committed
fixes bug
closes #3 thank you, @ryanspatrick
1 parent 34fc893 commit 726f6b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

analyze_file.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
% determine file type (Script, Function, or Class):
4545
if isempty(main_type) && ...
46-
~current_token.hasType({'newline', 'comment'})
46+
~current_token.hasType({'linebreak', 'comment'})
4747
if current_token.isEqual('keyword', 'function')
4848
main_type = 'Function';
4949
elseif current_token.isEqual('keyword', 'classdef')

0 commit comments

Comments
 (0)