From 8cfb530c4d43589bd663044677a2db595a323efb Mon Sep 17 00:00:00 2001 From: Leonardo Held Date: Fri, 17 Nov 2023 16:35:31 -0300 Subject: [PATCH] parser: let varname also contain '.' Signed-off-by: Leonardo Held --- oelint_parser/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oelint_parser/parser.py b/oelint_parser/parser.py index 862ece5..721af5a 100644 --- a/oelint_parser/parser.py +++ b/oelint_parser/parser.py @@ -151,7 +151,7 @@ def get_items(stash, _file, lineOffset=0): list: List of oelint_parser.cls_item.* representations """ res = [] - __regex_var = r"^(?P([A-Z0-9a-z_-]|\$|\{|\}|:)+?)(\[(?P(\w|-|\.)+)\])*(?P(\s|\t)*(\+|\?|\:|\.)*=(\+|\.)*(\s|\t)*)(?P.*)" + __regex_var = r"^(?P([A-Z0-9a-z_.-]|\$|\{|\}|:)+?)(\[(?P(\w|-|\.)+)\])*(?P(\s|\t)*(\+|\?|\:|\.)*=(\+|\.)*(\s|\t)*)(?P.*)" __regex_func = r"^((?Ppython)\s*|(?Pfakeroot\s*))*(?P[\w\.\-\+\{\}:\$]+)?\s*\(\s*\)\s*\{(?P.*)\s*\}" __regex_inherit = r"^.*?inherit(\s+|\t+)(?P.+)" __regex_export_wval = r"^\s*?export(\s+|\t+)(?P.+)\s*=\s*\"(?P.*)\""