@@ -36,11 +36,11 @@ void callEvent(ref dmd.errors.Diagnostic[] group) nothrow
3636 foreach (i, ref d; group)
3737 {
3838 auto diag = convert(d);
39- diag.startMessage.id = i + 1 ;
39+ diag.startMessage.id = i + 1 ;
4040 diags ~= diag;
4141 messages ~= d.message;
4242 }
43-
43+
4444 event(cast (string ) primary.loc.filename, cast (string ) primary.loc.fileContent, diags, messages, null );
4545}
4646
@@ -100,7 +100,7 @@ void event(string filename, string source, dmd.diagreport.defs.Diagnostic[] diag
100100 renderer.emitSquiggle = (string text) nothrow
101101 => buf.printDiagnostic(" \x1b [31m" , text, " \x1b [0m" );
102102 }
103- else
103+ else
104104 {
105105 renderer.emitMargin = (string text) nothrow
106106 => buf.printDiagnostic(text);
@@ -120,8 +120,8 @@ void event(string filename, string source, dmd.diagreport.defs.Diagnostic[] diag
120120 => buf.printDiagnostic(text);
121121 renderer.emitSquiggle = (string text) nothrow
122122 => buf.printDiagnostic(text);
123- }
124-
123+ }
124+
125125 renderer.getSourceCode = (int lineNumber) nothrow @trusted
126126 {
127127 int idx = lineNumber - firstLineNumber;
@@ -178,7 +178,7 @@ void event(string filename, string source, dmd.diagreport.defs.Diagnostic[] diag
178178 fflush(stderr);
179179}
180180
181- // Split source into lines without Phobos
181+ // Split source into lines without Phobos
182182private string [] splitLines (string source) nothrow
183183{
184184 string [] result;
@@ -287,7 +287,7 @@ private int getTokenLength(const(char)[] text, size_t offset) nothrow @safe
287287 c == ' ,' || c == ' ;' || c == ' )' || c == ' (' ||
288288 c == ' ]' || c == ' [' || c == ' {' || c == ' }' )
289289 {
290- if (count == 0 ) count = 1 ;
290+ if (count == 0 ) count = 1 ;
291291 break ;
292292 }
293293 count++ ;
0 commit comments