Skip to content

Commit ead0a77

Browse files
Improve indentation rules
* Separate comments in a different rule * Fixes issue #57 * Add rule for 'select case' statement
2 parents 30bd4d3 + a297377 commit ead0a77

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

language-configuration.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
]
5050
],
5151
"indentationRules": {
52-
"increaseIndentPattern": "^[^!]*(then\\s*(!.*)?$|\\s*(program|subroutine|function|module|do|block|associate)\\b.*|\\s*(else|else\\s*if|elsewhere)\\b.*)$",
53-
"decreaseIndentPattern": "^\\s*end\\s*(if|do)\\s*|^\\s*else\\b.*$|^\\s*end\\s(function|subroutine|module|program)"
52+
"unIndentedLinePattern": "^\\s*!.*",
53+
"increaseIndentPattern": "then(\\s*|\\s*!.*)$|^\\s*(program|subroutine|function|module|do|block|associate|case|select\\s*case)\\b.*$|\\s*(else|else\\s*if|elsewhere)\\b.*$",
54+
"decreaseIndentPattern": "^\\s*end\\s*(select|if|do|function|subroutine|module|program)\\b.*$|^\\s*else|case\\b.*$"
5455
}
5556
}

0 commit comments

Comments
 (0)