mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 12:49:18 +00:00
also protect ALIAS from indenting
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
This commit is contained in:
parent
70a94541f9
commit
9611232b4c
@ -6,7 +6,7 @@ import sys, re, subprocess, os
|
|||||||
|
|
||||||
# find all DEFUNs
|
# find all DEFUNs
|
||||||
defun_re = re.compile(
|
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)
|
re.M | re.S)
|
||||||
define_re = re.compile(
|
define_re = re.compile(
|
||||||
r'((^#\s*define[^\n]+[^\\]\n)+)',
|
r'((^#\s*define[^\n]+[^\\]\n)+)',
|
||||||
|
Loading…
Reference in New Issue
Block a user