mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-02-18 00:10:29 +01:00
scanner: expand the regex to search for protocol names
This now finds nested ei_foo.bar.baz too (though it includes the trailing full stop, if any).
This commit is contained in:
parent
4ac13ac7a7
commit
b05b256fd8
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue