diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-10-16 14:21:53 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2019-10-16 14:21:53 -0500 |
| commit | 531843a82a5efe59c15a675d9c3c8c5f28d4cab0 (patch) | |
| tree | d7a0979c1a84b53dd0cc5e638aa8acc454b7a527 | |
| parent | c40b25d2a29c467121b515739b5f67f9c7774927 (diff) | |
| download | nimterop-531843a82a5efe59c15a675d9c3c8c5f28d4cab0.tar.gz nimterop-531843a82a5efe59c15a675d9c3c8c5f28d4cab0.zip | |
Improve static inline handling
| -rw-r--r-- | nimterop/getters.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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() |
