Skip to content

Commit

Permalink
OpenAPI: make only one tag entry when the state stack is matched
Browse files Browse the repository at this point in the history
The original code tried matching even after making a tag for a token.

This change is derrived from universal-ctags#3258.
The original commit is so large.
@masatake splited the commit smaller per-topic ones.
@masatake wrote this commit log.
  • Loading branch information
segoon authored and masatake committed Jan 9, 2022
1 parent 79ce3ef commit 19c0baf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parsers/openapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ static void handleKey(struct sOpenAPISubparser *openapi,
attachYamlPosition (&tag, token, false);

makeTagEntry (&tag);
break;
}
}
}
Expand Down

0 comments on commit 19c0baf

Please sign in to comment.