added new and delete in lloc counter

This commit is contained in:
jorenchik
2025-01-04 20:42:20 +02:00
parent c0fbdeb79b
commit 5377801159

View File

@@ -22,7 +22,7 @@ def is_logical_line(line, output_lines):
r";",
r"\b(if|else|for|while|do|switch|case|return)\b", # Vadības kontroles konstrukcijas.
r"\b(class|struct|template|enum)\b", # Datu struktūras.
r"\b(namespace|typedef|using)\b", # Papildus konstrukcijas.
r"\b(namespace|typedef|using|new|delete)\b", # Papildus konstrukcijas.
]
is_logical = any(re.search(pattern, stripped) for pattern in logical_patterns)