Skip to content

Commit ed78499

Browse files
author
yavuzkoroglu
committed
on 03.07.23 @ 10:15
1 parent c8fd0ce commit ed78499

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/srcmetrics/metrics/sloc.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,13 @@ void event_endElement_sloc(struct srcsax_context* context, ...) {
183183
case 3U: if (
184184
str_eq_const(localname, "expr_stmt") ||
185185
str_eq_const(localname, "decl_stmt") ||
186-
str_eq_const(localname, "return")
186+
str_eq_const(localname, "return") ||
187+
str_eq_const(localname, "break") ||
188+
str_eq_const(localname, "continue") ||
189+
str_eq_const(localname, "label") ||
190+
str_eq_const(localname, "goto") ||
191+
str_eq_const(localname, "default") ||
192+
str_eq_const(localname, "case")
187193
) sloc_state = 1U;
188194
}
189195

0 commit comments

Comments
 (0)