From bb7f2da88d5bc5ad987fbe56ff5be5e11c712318 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Thu, 29 Mar 2018 22:13:17 -0400 Subject: [PATCH] tools: update indent.py for DEFPY_* macros Signed-off-by: Quentin Young --- tools/indent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/indent.py b/tools/indent.py index 139049b670..d2c41e1865 100755 --- a/tools/indent.py +++ b/tools/indent.py @@ -6,7 +6,7 @@ import sys, re, subprocess, os # find all DEFUNs defun_re = re.compile( - r'^((DEF(UN(|_ATTR|_CMD_(ELEMENT|FUNC_(DECL|TEXT))|_DEPRECATED|_NOSH|_HIDDEN|SH(|_ATTR|_DEPRECATED|_HIDDEN))?|PY)|ALIAS)\s*\(.*?)^(?=\s*\{)', + r'^((DEF(UN(|_ATTR|_CMD_(ELEMENT|FUNC_(DECL|TEXT))|_DEPRECATED|_NOSH|_HIDDEN|SH(|_ATTR|_DEPRECATED|_HIDDEN))?|PY|PY_ATTR|PY_HIDDEN)|ALIAS)\s*\(.*?)^(?=\s*\{)', re.M | re.S) define_re = re.compile( r'((^#\s*define[^\n]+[^\\]\n)+)', -- 2.39.5