-
Notifications
You must be signed in to change notification settings - Fork 624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added tests for Function::Parameters parser #2868
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fun input.c /^int fun(void) $/;" f typeref:typename:int | ||
method input.c /^int method(void) $/;" f typeref:typename:int | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A whitespace after |
||
sub input.c /^int sub(void) $/;" f typeref:typename:int | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A whitespace after |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
int method(void) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ...becase there is no whitespace after |
||
{ | ||
return 0; | ||
} | ||
|
||
int sub(void) | ||
{ | ||
return 0; | ||
} | ||
|
||
int fun(void) | ||
{ | ||
return 0; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Jim::Butler input.pl /^package Jim::Butler;$/;" p | ||
my_function input.pl /^fun my_function() {}$/;" f | ||
my_method input.pl /^method my_method() {}$/;" m | ||
my_subroutine input.pl /^sub my_subroutine {}$/;" s |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package Jim::Butler; | ||
|
||
use Function::Parameters; | ||
|
||
method my_method() {} | ||
|
||
fun my_function() {} | ||
|
||
sub my_subroutine {} | ||
|
||
1; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fun input.py /^def fun():$/;" f | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ctags never runs Perl parser ( and FunctionParameter subparser ) for .py files. |
||
method input.py /^def method():$/;" f | ||
sub input.py /^def sub():$/;" f |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
def method(): | ||
pass | ||
|
||
def fun(): | ||
pass | ||
|
||
def sub(): | ||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A whitespace after
(void)
is not needed.