diff --git a/common/python/nomadcore/simple_parser.py b/common/python/nomadcore/simple_parser.py index 368929f1ca216bab8a0a93d3a66674da2c31bf4e..34d2c60590644c87a4df71a916e8d756c0623097 100644 --- a/common/python/nomadcore/simple_parser.py +++ b/common/python/nomadcore/simple_parser.py @@ -700,8 +700,8 @@ class CompiledMatcher(object): 'matcher_does_nothing': self.matcher.does_nothing, # matcher without effect 'which_re': 'end' if targetStartEnd else 'start', # classification of match - 'match': 0, # 0 - no, 1 - partial, 2 - full - 'coverageIgnore': 0, # 0 - no, 1 - local, 2 - global + 'match': 0, # 0 - no, 1 - partial, 3 - full + 'coverageIgnore': 0, # 0 - no, 1 - local, 3 - global # overall span of match 'span': [], # capture groups @@ -710,7 +710,7 @@ class CompiledMatcher(object): if match: result['span'] = match.span() if result['span'][0] == 0 and result['span'][1] == len(line): - result['match'] = 2 # full match + result['match'] = 3 # full match else: result['match'] = 1 # partial match if self.matcher.coverageIgnore: # matcher is local coverageIgnore @@ -732,7 +732,7 @@ class CompiledMatcher(object): else: m_ci = parser.coverageIgnore.match(line) # check global coverageIgnore if m_ci: - result['coverageIgnore'] = 2 + result['coverageIgnore'] = 3 result['span'] = [m_ci.start(), m_ci.end()] return result