Modified viewport's parse_line to use cache.markup_syntax to select markup

This commit is contained in:
DancingQuanta 2017-07-05 09:59:50 +01:00 committed by Tomas Babej
parent 6bee0144d8
commit 65799431a1

View file

@ -200,7 +200,7 @@ class ViewPort(object):
@classmethod
def parse_line(cls, cache, number):
return re.search(regexp.GENERIC_VIEWPORT, cache.buffer[number])
return re.search(regexp.VIEWPORT[cache.markup_syntax], cache.buffer[number])
@classmethod
def from_line(cls, number, cache):