-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
679 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,275 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Comment should tokenize a comment that does not have a space before the end 1`] = ` | ||
Array [ | ||
Array [ | ||
"startComment", | ||
"/*", | ||
1, | ||
2, | ||
], | ||
Array [ | ||
"word", | ||
"my", | ||
1, | ||
3, | ||
1, | ||
4, | ||
], | ||
Array [ | ||
"space", | ||
" ", | ||
], | ||
Array [ | ||
"word", | ||
"comment", | ||
1, | ||
6, | ||
1, | ||
12, | ||
], | ||
Array [ | ||
"endComment", | ||
"*/", | ||
1, | ||
14, | ||
], | ||
] | ||
`; | ||
|
||
exports[`Comment should tokenize a docblock comment 1`] = ` | ||
Array [ | ||
Array [ | ||
"startComment", | ||
"/*", | ||
1, | ||
2, | ||
], | ||
Array [ | ||
"word", | ||
"*", | ||
1, | ||
3, | ||
1, | ||
3, | ||
], | ||
Array [ | ||
"newline", | ||
" | ||
", | ||
2, | ||
0, | ||
], | ||
Array [ | ||
"space", | ||
" ", | ||
], | ||
Array [ | ||
"word", | ||
"*", | ||
2, | ||
2, | ||
2, | ||
2, | ||
], | ||
Array [ | ||
"space", | ||
" ", | ||
], | ||
Array [ | ||
"word", | ||
"line", | ||
2, | ||
4, | ||
2, | ||
7, | ||
], | ||
Array [ | ||
"space", | ||
" ", | ||
], | ||
Array [ | ||
"word", | ||
"1", | ||
2, | ||
9, | ||
2, | ||
9, | ||
], | ||
Array [ | ||
"newline", | ||
" | ||
", | ||
3, | ||
0, | ||
], | ||
Array [ | ||
"space", | ||
" ", | ||
], | ||
Array [ | ||
"word", | ||
"*", | ||
3, | ||
2, | ||
3, | ||
2, | ||
], | ||
Array [ | ||
"newline", | ||
" | ||
", | ||
4, | ||
0, | ||
], | ||
Array [ | ||
"space", | ||
" ", | ||
], | ||
Array [ | ||
"word", | ||
"*", | ||
4, | ||
2, | ||
4, | ||
2, | ||
], | ||
Array [ | ||
"space", | ||
" ", | ||
], | ||
Array [ | ||
"word", | ||
"line", | ||
4, | ||
4, | ||
4, | ||
7, | ||
], | ||
Array [ | ||
"space", | ||
" ", | ||
], | ||
Array [ | ||
"word", | ||
"2", | ||
4, | ||
9, | ||
4, | ||
9, | ||
], | ||
Array [ | ||
"newline", | ||
" | ||
", | ||
5, | ||
0, | ||
], | ||
Array [ | ||
"space", | ||
" ", | ||
], | ||
Array [ | ||
"endComment", | ||
"*/", | ||
5, | ||
3, | ||
], | ||
] | ||
`; | ||
|
||
exports[`Comment should tokenize a multiline comment 1`] = ` | ||
Array [ | ||
Array [ | ||
"startComment", | ||
"/*", | ||
1, | ||
2, | ||
], | ||
Array [ | ||
"newline", | ||
" | ||
", | ||
2, | ||
0, | ||
], | ||
Array [ | ||
"word", | ||
"my", | ||
2, | ||
1, | ||
2, | ||
2, | ||
], | ||
Array [ | ||
"space", | ||
" ", | ||
], | ||
Array [ | ||
"word", | ||
"comment", | ||
2, | ||
4, | ||
2, | ||
10, | ||
], | ||
Array [ | ||
"newline", | ||
" | ||
", | ||
3, | ||
0, | ||
], | ||
Array [ | ||
"endComment", | ||
"*/", | ||
3, | ||
2, | ||
], | ||
] | ||
`; | ||
|
||
exports[`Comment should tokenize a simple comment 1`] = ` | ||
Array [ | ||
Array [ | ||
"startComment", | ||
"/*", | ||
1, | ||
2, | ||
], | ||
Array [ | ||
"space", | ||
" ", | ||
], | ||
Array [ | ||
"word", | ||
"my", | ||
1, | ||
4, | ||
1, | ||
5, | ||
], | ||
Array [ | ||
"space", | ||
" ", | ||
], | ||
Array [ | ||
"word", | ||
"comment", | ||
1, | ||
7, | ||
1, | ||
13, | ||
], | ||
Array [ | ||
"space", | ||
" ", | ||
], | ||
Array [ | ||
"endComment", | ||
"*/", | ||
1, | ||
16, | ||
], | ||
] | ||
`; |
Oops, something went wrong.