From bf95947e11492f1060819036694daed38237d10e Mon Sep 17 00:00:00 2001 From: Anthon van der Neut Date: Sun, 12 Aug 2018 17:35:24 +0200 Subject: fix issue #163 comment disappearing in list before flow mapping should be fixed in 0.15.54 *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so usingthe WorkFlow pull-down (close to the top right of this page)* --- tokens.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tokens.py') diff --git a/tokens.py b/tokens.py index 72c4f48..5176520 100644 --- a/tokens.py +++ b/tokens.py @@ -27,6 +27,10 @@ class Token(object): arguments += u', line: ' + str(self.start_mark.line) except: # NOQA pass + try: + arguments += u', comment: ' + str(self._comment) + except: # NOQA + pass return u'{}({})'.format(self.__class__.__name__, arguments) def add_post_comment(self, comment): -- cgit v1.2.1