Skip to content

Commit 19c0baf

Browse files
segoonmasatake
authored andcommitted
OpenAPI: make only one tag entry when the state stack is matched
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.
1 parent 79ce3ef commit 19c0baf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

parsers/openapi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ static void handleKey(struct sOpenAPISubparser *openapi,
249249
attachYamlPosition (&tag, token, false);
250250

251251
makeTagEntry (&tag);
252+
break;
252253
}
253254
}
254255
}

0 commit comments

Comments
 (0)