public void VbBasedSingleLineComment() { const String input = "' vim: ts=4:sw=8"; var parser = new GenericCommentParser(); String result = parser.Parse(new StringChars(input)); Assert.Equal("vim: ts=4:sw=8", result); }
public void FSharpMultiLineComment() { const String input = "(* vim: ts=4:sw=8 *)"; var parser = new GenericCommentParser(); String result = parser.Parse(new StringChars(input)); Assert.Equal("vim: ts=4:sw=8", result); }
public void ParsesLeadingWhiteSpace() { const String input = "\t // vim: ts=4:sw=8"; var parser = new GenericCommentParser(); String result = parser.Parse(new StringChars(input)); Assert.Equal("vim: ts=4:sw=8", result); }
public void CBasedMultiLineWithoutTerminatorComment() { const String input = "/* vim: ts=4:sw=8 "; var parser = new GenericCommentParser(); String result = parser.Parse(new StringChars(input)); Assert.Equal("vim: ts=4:sw=8", result); }
public void XmlComment() { const String input = "<!-- vim: ts=4:sw=8 -->"; var parser = new GenericCommentParser(); String result = parser.Parse(new StringChars(input)); Assert.Equal("vim: ts=4:sw=8", result); }