From 531843a82a5efe59c15a675d9c3c8c5f28d4cab0 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Wed, 16 Oct 2019 14:21:53 -0500 Subject: Improve static inline handling --- nimterop/getters.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimterop/getters.nim b/nimterop/getters.nim index 62dc132..660f69f 100644 --- a/nimterop/getters.nim +++ b/nimterop/getters.nim @@ -191,7 +191,7 @@ proc removeStatic(content: string): string = ## Replace static function bodies with a semicolon and commented ## out body return content.replace( - re"(?ms)static inline(.*?\))(\s*\{(\s*?.*?$)*?[\n\r]\})", + re"(?msU)static inline ([^)]+\))([^}]+\})", proc (m: RegexMatch, s: string): string = let funcDecl = s[m.group(0)[0]] let body = s[m.group(1)[0]].strip() -- cgit v1.2.3