normed: sources/node/node.c
This commit is contained in:
parent
0b3c966eaa
commit
9ee2fa851c
1 changed files with 15 additions and 14 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/28 18:36:40 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/08/22 15:58:43 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/09/06 15:35:30 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -33,7 +33,8 @@ t_node *build_childs(t_parse_node parent, t_const_str input, t_usize count)
|
|||
child = ts_node_child(parent, idx);
|
||||
ret[idx] = build_node(child, input);
|
||||
ret[idx].field = ts_node_field_id_for_child(parent, idx);
|
||||
ret[idx].field_str = ts_language_field_name_for_id(ts_node_language(parent), ret[idx].field);
|
||||
ret[idx].field_str = ts_language_field_name_for_id(\
|
||||
ts_node_language(parent), ret[idx].field);
|
||||
idx++;
|
||||
}
|
||||
return (ret);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue