-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3999 from b4n/matlab
matlab: A couple fixes for corner cases
- Loading branch information
Showing
4 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--sort=no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
func1 input.m /^function [x,y,z] = func1 $/;" f | ||
func2 input.m /^function x = func2 $/;" f | ||
func3 input.m /^function func3 $/;" f | ||
func4 input.m /^function y = func4(a, b, c)$/;" f | ||
func5 input.m /^function func5 % this comment should be ignored --> X = FAIL5$/;" f | ||
functionality input.m /^functionality = FAIL6; % this is not a function and should not be parsed$/;" v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
function [x,y,z] = func1 | ||
end | ||
function x = func2 | ||
end | ||
function func3 | ||
end | ||
function y = func4(a, b, c) | ||
end | ||
function func5 % this comment should be ignored --> X = FAIL5 | ||
end | ||
functionality = FAIL6; % this is not a function and should not be parsed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters