Fix #58
This commit is contained in:
parent
f9d0514ad4
commit
bf685d1dfc
4 changed files with 26 additions and 2 deletions
|
|
@ -305,7 +305,10 @@ proc initGrammar() =
|
|||
(type_identifier?)
|
||||
{fieldListGrammar}
|
||||
)
|
||||
(type_identifier)
|
||||
(type_identifier!)
|
||||
(pointer_declarator
|
||||
(type_identifier)
|
||||
)
|
||||
)
|
||||
""",
|
||||
proc (ast: ref Ast, node: TSNode) =
|
||||
|
|
@ -424,6 +427,8 @@ proc initGrammar() =
|
|||
if gStateRT.data[i].name == "pointer_declarator":
|
||||
fptr = "ptr "
|
||||
i += 1
|
||||
else:
|
||||
fptr = ""
|
||||
|
||||
var
|
||||
fname = gStateRT.data[i].val
|
||||
|
|
|
|||
|
|
@ -58,4 +58,12 @@ float test_call_param8(int *param1) {
|
|||
|
||||
void *test_call9() {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void multiline1(void) {}
|
||||
|
||||
void *multiline2(void) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void multiline3(void) {}
|
||||
|
|
|
|||
|
|
@ -109,6 +109,12 @@ int test_call_param7(union UNION1 param1);
|
|||
float test_call_param8(int *param1);
|
||||
void *test_call9();
|
||||
|
||||
// Issue #58
|
||||
void
|
||||
multiline1(void),
|
||||
*multiline2(void),
|
||||
multiline3(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
@ -110,6 +110,11 @@ check enum13 == 4
|
|||
check enum14 == 9
|
||||
check enum15 == 2
|
||||
|
||||
# Issue #58
|
||||
multiline1()
|
||||
let p = multiline2()
|
||||
multiline3()
|
||||
|
||||
cAddStdDir()
|
||||
|
||||
## failing tests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue