diff options
| author | G. Paul Ziemba <paulz@labn.net> | 2018-02-09 10:18:35 -0800 |
|---|---|---|
| committer | G. Paul Ziemba <paulz@labn.net> | 2018-02-09 10:18:35 -0800 |
| commit | 9611232b4c2ca2d66adc1b6e5b294ea5b8cec714 (patch) | |
| tree | 8aeed763f8d608a1192002302378f6eb0aeac6b8 /indent.py | |
| parent | 70a94541f9f9f1ab12900199c648f69808ff6f65 (diff) | |
also protect ALIAS from indenting
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
Diffstat (limited to 'indent.py')
| -rw-r--r-- | indent.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6,7 +6,7 @@ import sys, re, subprocess, os # find all DEFUNs defun_re = re.compile( - r'^(DEF(UN(_NOSH|_HIDDEN)?|PY)\s*\(.*?)^(?=\s*\{)', + r'^((DEF(UN(_NOSH|_HIDDEN)?|PY)|ALIAS)\s*\(.*?)^(?=\s*\{)', re.M | re.S) define_re = re.compile( r'((^#\s*define[^\n]+[^\\]\n)+)', |
