-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
util/vim: Fix indentation for interfaces and if guards
This commit fixes two issues with the vim indentor. * Indentation of methods in interfaces: ```bsv interface SomeInterface; method Action someMethod(); // Previously this would indent the next method once more method Action someOtherMethod(); endinterface : SomeInterface ``` * If guards on methods being treated as if statements, therefore only indenting the next statement ```bsv method Action someMethod() if (ready); a <= 0; // Previously this next line would not be indented at all. b <= 0; endmethod ```
- Loading branch information
Showing
1 changed file
with
42 additions
and
18 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