This repository has been archived by the owner. It is now read-only.
PermalinkThis 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 charactersThis 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
Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
indent: Fix several issues related to indentation
This addresses several issues regarding indentation. 1. Being able to indent conditional if/else assignments to make them look more pleasing. Most users wanted to do something like this ```cs y = if a true else false ``` This now won't return an error for the user. Fixes #468, #345 2. Fixed some bugs around chaining (.) operations There were some cases of chaining operators not being evaluated correctly. One was due to not checking for end tokens with `newLine` properties. Fixes #469, #348 3. Better cleanup of indented multi-line conditional statements. Just some cleanup of the logic for the conditional in an if statement. 4. Empty if conditionals now do not generate indent message While I think more often than not you should never need to have an empty if conditional in your code. I do recognize it probably will happen, and someone who chooses to use one should not be punished for it with an indentation issue. Closes #312
- Loading branch information
Showing with 243 additions and 17 deletions.