summaryrefslogtreecommitdiff
path: root/tools/indent.py
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2018-03-09 11:49:29 -0500
committerLou Berger <lberger@labn.net>2018-03-13 05:46:03 -0400
commit3413af0d748fd2adaaa9feeb072c5ba358796a17 (patch)
tree1bac692ec7a9faa1afe5270f60b8bfe745e24a6f /tools/indent.py
parentc1a003878246ccc84ab5986558ca959f4545f738 (diff)
tools: fix indent.py to recognize all DEFUN types:
DEFUN DEFUN_ATTR DEFUN_CMD_ELEMENT DEFUN_CMD_FUNC_DECL DEFUN_CMD_FUNC_TEXT DEFUN_DEPRECATED DEFUN_HIDDEN DEFUN_NOSH DEFUNSH DEFUNSH_ATTR DEFUNSH_DEPRECATED DEFUNSH_HIDDEN Signed-off-by: Lou Berger <lberger@labn.net>
Diffstat (limited to 'tools/indent.py')
-rwxr-xr-xtools/indent.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/indent.py b/tools/indent.py
index 91bb23f67c..139049b670 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(_NOSH|_HIDDEN)?|PY)|ALIAS)\s*\(.*?)^(?=\s*\{)',
+ r'^((DEF(UN(|_ATTR|_CMD_(ELEMENT|FUNC_(DECL|TEXT))|_DEPRECATED|_NOSH|_HIDDEN|SH(|_ATTR|_DEPRECATED|_HIDDEN))?|PY)|ALIAS)\s*\(.*?)^(?=\s*\{)',
re.M | re.S)
define_re = re.compile(
r'((^#\s*define[^\n]+[^\\]\n)+)',