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?)
|
(type_identifier?)
|
||||||
{fieldListGrammar}
|
{fieldListGrammar}
|
||||||
)
|
)
|
||||||
(type_identifier)
|
(type_identifier!)
|
||||||
|
(pointer_declarator
|
||||||
|
(type_identifier)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
""",
|
""",
|
||||||
proc (ast: ref Ast, node: TSNode) =
|
proc (ast: ref Ast, node: TSNode) =
|
||||||
|
|
@ -424,6 +427,8 @@ proc initGrammar() =
|
||||||
if gStateRT.data[i].name == "pointer_declarator":
|
if gStateRT.data[i].name == "pointer_declarator":
|
||||||
fptr = "ptr "
|
fptr = "ptr "
|
||||||
i += 1
|
i += 1
|
||||||
|
else:
|
||||||
|
fptr = ""
|
||||||
|
|
||||||
var
|
var
|
||||||
fname = gStateRT.data[i].val
|
fname = gStateRT.data[i].val
|
||||||
|
|
|
||||||
|
|
@ -59,3 +59,11 @@ float test_call_param8(int *param1) {
|
||||||
void *test_call9() {
|
void *test_call9() {
|
||||||
return NULL;
|
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);
|
float test_call_param8(int *param1);
|
||||||
void *test_call9();
|
void *test_call9();
|
||||||
|
|
||||||
|
// Issue #58
|
||||||
|
void
|
||||||
|
multiline1(void),
|
||||||
|
*multiline2(void),
|
||||||
|
multiline3(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -110,6 +110,11 @@ check enum13 == 4
|
||||||
check enum14 == 9
|
check enum14 == 9
|
||||||
check enum15 == 2
|
check enum15 == 2
|
||||||
|
|
||||||
|
# Issue #58
|
||||||
|
multiline1()
|
||||||
|
let p = multiline2()
|
||||||
|
multiline3()
|
||||||
|
|
||||||
cAddStdDir()
|
cAddStdDir()
|
||||||
|
|
||||||
## failing tests
|
## failing tests
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue