-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🖊 editor: Improve Evy web editor to use smarter indentation (#455)
Use smarter indentation in Evy web editor. Whenever a new line is inserted, the editor will automatically: - preserves indent of current line by default (we already had this). - increases the indent after block opening keywords `func` `on` `if` `else` `while` `for` (new). - updates the current line indent for `end` and `else` keywords: decreasing the indent if needed (new). There are many edge cases. This is a best effort improvement. Current line updating only happens if no selection is active - selection start and end index are equal. Fixes: evylang/todo#115 Pull-request: #455
- Loading branch information
1 parent
aed932e
commit caeed5c
Showing
1 changed file
with
46 additions
and
13 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