summaryrefslogtreecommitdiff
path: root/indent.py
diff options
context:
space:
mode:
authorG. Paul Ziemba <paulz@labn.net>2018-02-09 10:18:35 -0800
committerG. Paul Ziemba <paulz@labn.net>2018-02-09 10:18:35 -0800
commit9611232b4c2ca2d66adc1b6e5b294ea5b8cec714 (patch)
tree8aeed763f8d608a1192002302378f6eb0aeac6b8 /indent.py
parent70a94541f9f9f1ab12900199c648f69808ff6f65 (diff)
also protect ALIAS from indenting
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
Diffstat (limited to 'indent.py')
-rw-r--r--indent.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indent.py b/indent.py
index a2c18e556d..560c13c77d 100644
--- a/indent.py
+++ b/indent.py
@@ -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)+)',