forked from lightscript/babylon-lightscript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial whiteblockOnly impl, test fixes
- Loading branch information
Showing
97 changed files
with
992 additions
and
8,569 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
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
6 changes: 1 addition & 5 deletions
6
test/fixtures/comments/basic/block-trailing-comment/options.json
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 |
---|---|---|
@@ -1,11 +1,7 @@ | ||
{ | ||
"alternatives": { | ||
"all": { | ||
"throws": "Unexpected token, expected { (2:7)" | ||
}, | ||
"noLsc": { | ||
"allPlugins": true, | ||
"excludePlugins": ["lightscript", "match", "enhancedComprehension", "objectBlockAmbiguity_preferObject"] | ||
"throws": "Unexpected token, expected : (2:7)" | ||
} | ||
} | ||
} |
3 changes: 0 additions & 3 deletions
3
test/fixtures/comments/basic/block-trailing-comment/options.lightscript.json
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
test/fixtures/comments/basic/comment-within-condition/options.json
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,7 @@ | ||
{ | ||
"alternatives": { | ||
"all": { | ||
"throws": "Unexpected token, expected : (2:18)" | ||
} | ||
} | ||
} |
7 changes: 6 additions & 1 deletion
7
test/fixtures/comments/basic/export-default-anonymous-class/options.json
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
{ | ||
"sourceType": "module" | ||
"sourceType": "module", | ||
"alternatives": { | ||
"all": { | ||
"throws": "Brace-delimited blocks are illegal in whiteblock-only mode. (4:21)" | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
test/fixtures/comments/basic/surrounding-call-comments/options.json
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,7 @@ | ||
{ | ||
"alternatives": { | ||
"all": { | ||
"throws": "Unexpected token, expected : (1:13)" | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
test/fixtures/comments/basic/surrounding-debugger-comments/options.json
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,7 @@ | ||
{ | ||
"alternatives": { | ||
"all": { | ||
"throws": "Unexpected token, expected : (1:13)" | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
test/fixtures/comments/basic/surrounding-return-comments/options.json
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,7 @@ | ||
{ | ||
"alternatives": { | ||
"all": { | ||
"throws": "Unexpected token, expected : (1:13)" | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
test/fixtures/comments/basic/surrounding-throw-comments/options.json
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,7 @@ | ||
{ | ||
"alternatives": { | ||
"all": { | ||
"throws": "Unexpected token, expected : (1:13)" | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
test/fixtures/comments/basic/surrounding-while-loop-comments/options.json
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,7 @@ | ||
{ | ||
"alternatives": { | ||
"all": { | ||
"throws": "Unexpected token, expected : (1:13)" | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
test/fixtures/comments/basic/switch-fallthrough-comment-in-function/options.json
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,7 @@ | ||
{ | ||
"alternatives": { | ||
"all": { | ||
"throws": "Unexpected token, expected : (1:18)" | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
test/fixtures/comments/basic/switch-no-default-comment-in-function/options.json
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,7 @@ | ||
{ | ||
"alternatives": { | ||
"all": { | ||
"throws": "Unexpected token, expected : (1:16)" | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
test/fixtures/comments/basic/switch-no-default-comment-in-nested-functions/options.json
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,7 @@ | ||
{ | ||
"alternatives": { | ||
"all": { | ||
"throws": "Unexpected token, expected : (1:35)" | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"alternatives": { | ||
"noLsc": { | ||
"excludePlugins": ["significantWhitespace", "bangCall", "enforceSubscriptIndentation", "lightscript", "match", "enhancedComprehension", "objectBlockAmbiguity_preferObject"] | ||
"excludePlugins": ["significantWhitespace", "bangCall", "enforceSubscriptIndentation", "lightscript", "match", "enhancedComprehension", "whiteblockOnly"] | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"alternatives": { | ||
"noLsc": { | ||
"excludePlugins": ["significantWhitespace", "bangCall", "enforceSubscriptIndentation", "enhancedComprehension", "objectBlockAmbiguity_preferObject"] | ||
"excludePlugins": ["significantWhitespace", "bangCall", "enforceSubscriptIndentation", "enhancedComprehension", "whiteblockOnly"] | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"alternatives": { | ||
"noLsc": { | ||
"excludePlugins": ["bangCall", "enforceSubscriptIndentation", "significantWhitespace", "enhancedComprehension", "objectBlockAmbiguity_preferObject"] | ||
"excludePlugins": ["bangCall", "enforceSubscriptIndentation", "significantWhitespace", "enhancedComprehension", "whiteblockOnly"] | ||
} | ||
} | ||
} |
Oops, something went wrong.