Browse Source

SD2-1047: Quick XML doc not implemented for VB.NET comments

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1843 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Markus Palme 20 years ago
parent
commit
76e6c81234
  1. 6
      src/Main/Base/Project/Src/TextEditor/Commands/ToolCommands.cs

6
src/Main/Base/Project/Src/TextEditor/Commands/ToolCommands.cs

@ -87,14 +87,14 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Commands @@ -87,14 +87,14 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Commands
LineSegment line = textAreaControl.Document.GetLineSegment(startLine);
string curLine = textAreaControl.Document.GetText(line.Offset, line.Length).Trim();
if (!curLine.StartsWith("///") && ! curLine.StartsWith("'@")) {
if (!curLine.StartsWith("///") && ! curLine.StartsWith("'''")) {
return;
}
while (startLine > 0) {
line = textAreaControl.Document.GetLineSegment(startLine);
curLine = textAreaControl.Document.GetText(line.Offset, line.Length).Trim();
if (curLine.StartsWith("///") || curLine.StartsWith("'@")) {
if (curLine.StartsWith("///") || curLine.StartsWith("'''")) {
--startLine;
} else {
break;
@ -104,7 +104,7 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Commands @@ -104,7 +104,7 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Commands
while (endLine < textAreaControl.Document.TotalNumberOfLines - 1) {
line = textAreaControl.Document.GetLineSegment(endLine);
curLine = textAreaControl.Document.GetText(line.Offset, line.Length).Trim();
if (curLine.StartsWith("///") || curLine.StartsWith("'@")) {
if (curLine.StartsWith("///") || curLine.StartsWith("'''")) {
++endLine;
} else {
break;

Loading…
Cancel
Save