From 4f1867a4f8683aadc4d45f01eb0e3f3a88e3ac5e Mon Sep 17 00:00:00 2001 From: github action Date: Mon, 11 Jan 2021 03:55:27 +0000 Subject: [PATCH] Apply clang-format --- src/bisonpre | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/bisonpre b/src/bisonpre index 130ed8578..2d1c79934 100755 --- a/src/bisonpre +++ b/src/bisonpre @@ -209,7 +209,9 @@ def clean_input(filename, outname): ": Move text on rule line to next line: " + line + "\n") - matcha = re.match(r'^([a-zA-Z0-9_]+)<(\S*)>(.*)$', line, flags=re.DOTALL) + matcha = re.match(r'^([a-zA-Z0-9_]+)<(\S*)>(.*)$', + line, + flags=re.DOTALL) matchb = re.match(r'^([a-zA-Z0-9_]+):', line) if re.match(r'^%%', line): @@ -314,8 +316,10 @@ def clean_input(filename, outname): for line in linesin: l += 1 if _enaline(line) and re.search(r'BISONPRE_NOT', line): - match = re.search(r'(.*)BISONPRE_NOT\((\S+)\)\s*(\{[^}]+})\s*(.*)$', - line, flags=re.DOTALL) + match = re.search( + r'(.*)BISONPRE_NOT\((\S+)\)\s*(\{[^}]+})\s*(.*)$', + line, + flags=re.DOTALL) if not match: sys.exit("%Error: " + filename + ":" + str(l) + ": Bad form of BISONPRE_NOT: " + line) @@ -404,7 +408,9 @@ def _bisonpre_copy(text, l, depth): while re.search(r'BISONPRE_COPY', text): match = re.match( # 1 2 3 4 5 - r'(.*)BISONPRE_COPY(_ONCE)?\((\S+)\s*,\s*\{([^}]*)}\s*\)(.*)', text, flags=re.DOTALL) + r'(.*)BISONPRE_COPY(_ONCE)?\((\S+)\s*,\s*\{([^}]*)}\s*\)(.*)', + text, + flags=re.DOTALL) if not match: sys.exit("%Error: " + Filename + ":" + str(l) + ": Bad form of BISONPRE_NOT: " + text)