diff --git a/count_lloc_cpp_h.py b/count_lloc_cpp_h.py index d143ec9..0741e70 100644 --- a/count_lloc_cpp_h.py +++ b/count_lloc_cpp_h.py @@ -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)