diff options
author | G. Paul Ziemba <paulz@labn.net> | 2018-02-09 19:18:35 +0100 |
---|---|---|
committer | G. Paul Ziemba <paulz@labn.net> | 2018-02-09 19:18:35 +0100 |
commit | 9611232b4c2ca2d66adc1b6e5b294ea5b8cec714 (patch) | |
tree | 8aeed763f8d608a1192002302378f6eb0aeac6b8 /indent.py | |
parent | Merge branch 'working/master/json-bgp-vpn-fixes' of https://github.com/LabNCo... (diff) | |
download | frr-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.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)+)', |