Improve static inline handling
This commit is contained in:
parent
c40b25d2a2
commit
531843a82a
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue