Skip to content

Commit

Permalink
Add useful $ sign
Browse files Browse the repository at this point in the history
  • Loading branch information
younesaassila committed Sep 1, 2023
1 parent 0f2c578 commit 5478994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c_formatter_42/formatters/line_breaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def additional_indent_level(s: str, nest_indent_level: int = 0) -> int:
def additional_nest_indent_level(line: str) -> int:
# An exceptional rule for variable assignment
# https://github.com/42School/norminette/blob/921b5e22d991591f385e1920f7e7ee5dcf71f3d5/norminette/rules/check_assignation_indent.py#L59
align_pattern = r"^\s*({decl})((\.|->){decl})*\s+=\s+(.|\n)*?;"
align_pattern = r"^\s*({decl})((\.|->){decl})*\s+=\s+(.|\n)*?;$"
align_pattern = align_pattern.format(decl=helper.REGEX_DECL_NAME)
return 1 if re.match(align_pattern, line) is not None else 0

Expand Down

0 comments on commit 5478994

Please sign in to comment.