Skip to content

Commit a297377

Browse files
committed
Fix identation rules of 'end some_keyword' and add rule for select case.
1 parent 30bd4d3 commit a297377

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)