-
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(grainfmt): Print comments found between comma-separated data stat…
…ements (#1430)
- Loading branch information
1 parent
3c56097
commit be4b38d
Showing
4 changed files
with
63 additions
and
0 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
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,23 @@ | ||
enum EventType { | ||
Enter, | ||
Exit, | ||
}, | ||
/** | ||
* An event is the start or end of a token amongst other events. | ||
* Tokens can “contain” other tokens, even though they are stored in a flat | ||
* list, through `enter`ing before them, and `exit`ing after them. | ||
*/ | ||
type Event = (EventType, Token, TokenizeContext), | ||
/** | ||
* Another event is the start or end of a token amongst other events. | ||
* Tokens can “contain” other tokens, even though they are stored in a flat | ||
* list, through `enter`ing before them, and `exit`ing after them. | ||
*/ | ||
|
||
|
||
enum EventType2 { | ||
Enter2, | ||
Exit2, | ||
}, | ||
// line comment | ||
type Event2 = (EventType2, Token, TokenizeContext) |
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,21 @@ | ||
enum EventType { | ||
Enter, | ||
Exit, | ||
}, | ||
/** | ||
* An event is the start or end of a token amongst other events. | ||
* Tokens can “contain” other tokens, even though they are stored in a flat | ||
* list, through `enter`ing before them, and `exit`ing after them. | ||
*/ | ||
type Event = (EventType, Token, TokenizeContext), | ||
/** | ||
* Another event is the start or end of a token amongst other events. | ||
* Tokens can “contain” other tokens, even though they are stored in a flat | ||
* list, through `enter`ing before them, and `exit`ing after them. | ||
*/ | ||
enum EventType2 { | ||
Enter2, | ||
Exit2, | ||
}, | ||
// line comment | ||
type Event2 = (EventType2, Token, TokenizeContext) |
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