Format comments consistently in parser.c
This commit is contained in:
parent
826d4dfa23
commit
c04474acf6
1 changed files with 5 additions and 3 deletions
|
|
@ -83,9 +83,11 @@ static void reduce(TSParser *parser, TSSymbol symbol, size_t child_count) {
|
|||
TSStack *stack = &parser->stack;
|
||||
parser->next_lookahead = parser->lookahead;
|
||||
|
||||
// Walk down the stack to determine which symbols will be reduced.
|
||||
// The child node count is known ahead of time, but some children
|
||||
// may be ubiquitous tokens, which don't count.
|
||||
/*
|
||||
* Walk down the stack to determine which symbols will be reduced.
|
||||
* The child node count is known ahead of time, but some children
|
||||
* may be ubiquitous tokens, which don't count.
|
||||
*/
|
||||
for (size_t i = 0; i < child_count; i++) {
|
||||
if (child_count == stack->size)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue