Skip to content

Commit 7a82ea6

Browse files
committed
use slnx
1 parent ed5d458 commit 7a82ea6

File tree

4 files changed

+23
-178
lines changed

4 files changed

+23
-178
lines changed

ACompiler.sln

Lines changed: 0 additions & 176 deletions
This file was deleted.

ACompiler.slnx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<Solution>
2+
<Configurations>
3+
<Platform Name="Any CPU" />
4+
<Platform Name="x64" />
5+
<Platform Name="x86" />
6+
</Configurations>
7+
<Folder Name="/src/">
8+
<Project Path="src/CodeGen/CodeGen.fsproj" />
9+
<Project Path="src/Common/Common.fsproj" />
10+
<Project Path="src/Optimize/Optimize.fsproj" />
11+
<Project Path="src/Semantic/Semantic.fsproj" />
12+
<Project Path="src/Snapshot/Snapshot.fsproj" />
13+
<Project Path="src/Syntax/Syntax.fsproj" />
14+
</Folder>
15+
<Folder Name="/test/">
16+
<Project Path="test/CodeGen/CodeGen.Test.fsproj" />
17+
<Project Path="test/Optimize/Optimize.Test.fsproj" />
18+
<Project Path="test/Semantic/Semantic.Test.fsproj" />
19+
<Project Path="test/Syntax/Syntax.Test.fsproj" />
20+
</Folder>
21+
</Solution>

src/Syntax/Lexer.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ type Lexer(input: string, error: ResizeArray<Error>) =
287287
if j = len then
288288
raise (ParserExp(IncompleteMultilineComment(Span.Make pos (j - 1))))
289289
else if j + 1 < len && input[j] = '*' && input[j + 1] = '/' then
290-
let token = Comment(MultiLine, input[pos .. (j + 1)])
290+
let token = Comment(MultiLine, input[(pos + 2) .. (j - 1)])
291291
token, j + 1
292292
else
293293
takeWhen (j + 1)

test/Syntax/Lexer.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ let Composite () =
8989
)
9090

9191
[<Fact>]
92-
let Comment =
92+
let Comment () =
9393
Assert.Equivalent(
9494
[| Identifier "aaa"; Comment(SingleLine, " single comment a + b") |],
9595
lexStripSpan "aaa // single comment a + b"

0 commit comments

Comments
 (0)