-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Apply fixes for Magik language #4076
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
152703a
Apply fixes for Magik language
sebastiaanspeck 56e52e0
Add support for pipe-enclosed variables
sebastiaanspeck 84d7ff9
Split (and fix) the different variable types
sebastiaanspeck 9f95a53
Add test case for slot
sebastiaanspeck 4efc0ef
Fix slot test
sebastiaanspeck 8a5cfbd
Fix import
sebastiaanspeck fbcaab9
Simplify regex
sebastiaanspeck 356a13b
Apply some fixes after code review
sebastiaanspeck c3490a0
Fix lint issue
sebastiaanspeck f24130e
Revert change
sebastiaanspeck 1407d3e
Apply suggestion from review and fix flags
sebastiaanspeck f07235b
Add tests for global variables with `?` and `!`
sebastiaanspeck 89b96c8
Remove word boundary
sebastiaanspeck 64deafe
Use keyword as alias for `_unset`/`_constant`
sebastiaanspeck 1215b98
Update src/languages/magik.js
sebastiaanspeck 822f871
Update variable_feature.test
sebastiaanspeck 0c9ed13
Run prettier
sebastiaanspeck File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 @@ | ||
| !terminal! | ||
| sw:!terminal! | ||
| |!terminal!| | ||
| |!terminal|! | ||
| !|terminal|! | ||
| !||! | ||
|
|
||
| ---------------------------------------------------- | ||
|
|
||
| [ | ||
| ["dynamic-variable", "!terminal!"], | ||
| ["dynamic-variable", "sw:!terminal!"], | ||
| ["dynamic-variable", "|!terminal!|"], | ||
| ["dynamic-variable", "|!terminal|!"], | ||
| ["dynamic-variable", "!|terminal|!"], | ||
| ["dynamic-variable", "!||!"] | ||
| ] | ||
|
|
||
| ---------------------------------------------------- | ||
|
|
||
| Checks for dynamic variables. |
This file contains hidden or 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 hidden or 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 hidden or 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 @@ | ||
| sw:gis_program_manager | ||
| sw:|gis_program_manager| | ||
| sw:question? | ||
| sw:|question?| | ||
| sw:sys!system | ||
| sw:|sys!system| | ||
|
|
||
| ---------------------------------------------------- | ||
|
|
||
| [ | ||
| ["global-variable", "sw:gis_program_manager"], | ||
| ["global-variable", "sw:|gis_program_manager|"], | ||
| ["global-variable", "sw:question?"], | ||
| ["global-variable", "sw:|question?|"], | ||
| ["global-variable", "sw:sys!system"], | ||
| ["global-variable", "sw:|sys!system|"] | ||
| ] | ||
|
|
||
| ---------------------------------------------------- | ||
|
|
||
| Checks for global variables. |
This file contains hidden or 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,11 @@ | ||
| _class _dynamic _global _import _local | ||
|
|
||
| ---------------------------------------------------- | ||
|
|
||
| [ | ||
| ["keyword-variable", "_class"], ["keyword-variable", "_dynamic"], ["keyword-variable", "_global"], ["keyword-variable", "_import"], ["keyword-variable", "_local"] | ||
| ] | ||
|
|
||
| ---------------------------------------------------- | ||
|
|
||
| Checks for keyword variables. |
This file contains hidden or 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
File renamed without changes.
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.