diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-03-29 22:13:17 -0400 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-04-10 12:19:14 -0400 |
| commit | bb7f2da88d5bc5ad987fbe56ff5be5e11c712318 (patch) | |
| tree | 0754b500ada814629aa7f437bbc53a85e37721cf /tools/indent.py | |
| parent | e31f4dbec66d2ca74fb11e3d5e6506e7a33b508e (diff) | |
tools: update indent.py for DEFPY_* macros
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'tools/indent.py')
| -rwxr-xr-x | tools/indent.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)+)', |
