diff --git a/proto/ei-scanner b/proto/ei-scanner index 1ecfcaf..122d3e9 100755 --- a/proto/ei-scanner +++ b/proto/ei-scanner @@ -814,7 +814,9 @@ def generate_source( import re - return re.sub(rf"({component}[_-]\w*)(\.\w*)?", rf"{quotes}\1\2{quotes}", str) + return re.sub( + rf"({component}[_-]\w*)(\.[.\w]*)?", rf"{quotes}\1\2{quotes}", str + ) env.filters["c_type"] = filter_c_type env.filters["as_c_arg"] = filter_as_c_arg