From 9611232b4c2ca2d66adc1b6e5b294ea5b8cec714 Mon Sep 17 00:00:00 2001 From: "G. Paul Ziemba" Date: Fri, 9 Feb 2018 10:18:35 -0800 Subject: also protect ALIAS from indenting Signed-off-by: G. Paul Ziemba --- indent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indent.py') diff --git a/indent.py b/indent.py index a2c18e556..560c13c77 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)+)', -- cgit v1.2.3