summaryrefslogtreecommitdiffstats
path: root/indent.py
diff options
context:
space:
mode:
authorG. Paul Ziemba <paulz@labn.net>2018-02-09 19:18:35 +0100
committerG. Paul Ziemba <paulz@labn.net>2018-02-09 19:18:35 +0100
commit9611232b4c2ca2d66adc1b6e5b294ea5b8cec714 (patch)
tree8aeed763f8d608a1192002302378f6eb0aeac6b8 /indent.py
parentMerge branch 'working/master/json-bgp-vpn-fixes' of https://github.com/LabNCo... (diff)
downloadfrr-9611232b4c2ca2d66adc1b6e5b294ea5b8cec714.tar.xz
frr-9611232b4c2ca2d66adc1b6e5b294ea5b8cec714.zip
also protect ALIAS from indenting
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
Diffstat (limited to '')
-rw-r--r--indent.py2
1 files changed, 1 insertions, 1 deletions
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)+)',