Skip to content

Commit

Permalink
parser: let varname also contain '.'
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Held <[email protected]>
  • Loading branch information
leonheldattoradex committed Nov 17, 2023
1 parent 7886897 commit 8cfb530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oelint_parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def get_items(stash, _file, lineOffset=0):
list: List of oelint_parser.cls_item.* representations
"""
res = []
__regex_var = r"^(?P<varname>([A-Z0-9a-z_-]|\$|\{|\}|:)+?)(\[(?P<ident>(\w|-|\.)+)\])*(?P<varop>(\s|\t)*(\+|\?|\:|\.)*=(\+|\.)*(\s|\t)*)(?P<varval>.*)"
__regex_var = r"^(?P<varname>([A-Z0-9a-z_.-]|\$|\{|\}|:)+?)(\[(?P<ident>(\w|-|\.)+)\])*(?P<varop>(\s|\t)*(\+|\?|\:|\.)*=(\+|\.)*(\s|\t)*)(?P<varval>.*)"
__regex_func = r"^((?P<py>python)\s*|(?P<fr>fakeroot\s*))*(?P<func>[\w\.\-\+\{\}:\$]+)?\s*\(\s*\)\s*\{(?P<funcbody>.*)\s*\}"
__regex_inherit = r"^.*?inherit(\s+|\t+)(?P<inhname>.+)"
__regex_export_wval = r"^\s*?export(\s+|\t+)(?P<name>.+)\s*=\s*\"(?P<value>.*)\""
Expand Down

0 comments on commit 8cfb530

Please sign in to comment.