This commit is contained in:
Ganesh Viswanathan 2019-01-22 11:14:32 -06:00
commit bf685d1dfc
4 changed files with 26 additions and 2 deletions

View file

@ -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

View file

@ -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) {}

View file

@ -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

View file

@ -110,6 +110,11 @@ check enum13 == 4
check enum14 == 9
check enum15 == 2
# Issue #58
multiline1()
let p = multiline2()
multiline3()
cAddStdDir()
## failing tests