1
Vote

bug when setting CommentTerminal multiline flags?

description

Hi,
In the init() method of the Commentterminal (CommentTerminal.cs),
If one of the endsymbols contains "\n", but not the first one, then:
when looping over endsymbols, the flag IsMultiline will be set on the first symbol, and it will never be unset.

Shouldn't the line:
       if (!_isLineComment)
          SetFlag(TermFlags.IsMultiline); 
be moved outside the loop ?

comments

rivantsov wrote Jun 27, 2015 at 4:09 AM

at first look, you're right, it should be moved outside