Skip to content

Commit d817aad

Browse files
authored
Merge pull request #19 from krvajal/feat/indentation-rules
+ add indentation rules
2 parents 13b09c9 + e66f7c7 commit d817aad

File tree

4 files changed

+212
-173
lines changed

4 files changed

+212
-173
lines changed

CHANGELOG.md

Lines changed: 42 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,68 @@
11
# Change Log
2+
23
All notable changes to this extension will be documented in this file.
34

45
The format is based on [Keep a Changelog](http://keepachangelog.com/)
56
and this project adheres to [Semantic Versioning](http://semver.org/).
67

78
## [Unreleased]
8-
- Initial release
99

10-
## [0.4.0] - 2017-05-29
11-
### Added
12-
- Show docs for intrinsic functions on hover
13-
### Changed
14-
- Updated icon for the extension
15-
- Fix bug on linter not working
10+
* Initial release
11+
12+
## [0.4.0] - 2017-05-29
13+
14+
### Added
1615

16+
* Show docs for intrinsic functions on hover
17+
### Changed
18+
* Updated icon for the extension
19+
* Fix bug on linter not working
1720

1821
## [0.4.4] - 2017-07-03
19-
### Added
20-
- Add support for old fortran languague
21-
### Fixed
22-
- Fix bug #1
22+
23+
### Added
24+
25+
* Add support for old fortran languague
26+
### Fixed
27+
* Fix bug #1
2328

2429
## [0.4.5] - 2017-07-04
30+
2531
### Fixed
26-
- Fix intrinsic functions docs not loading
32+
33+
* Fix intrinsic functions docs not loading
2734

2835
## [0.4.6] - 2017-07-04
36+
2937
### Added
30-
- Add support for user configuration settings
38+
39+
* Add support for user configuration settings
3140

3241
## [0.5.0] - 2017-07-06
42+
3343
### Added
34-
- Add code autocompletion for intrinsic and in document declared functions
44+
45+
* Add code autocompletion for intrinsic and in document declared functions
3546

3647
## [0.5.1] - 2017-07-06
48+
3749
### Added
38-
- Add `Go -> Go to symbol in file` command support for functions
50+
51+
* Add `Go -> Go to symbol in file` command support for functions
3952

4053
## [0.5.2] - 2017-07-14
41-
### Fixed
42-
- A bug in the regex to parse output errors from gfortran
43-
- Now the spawn command uses the directory of the file `gfortran` is analyzing
4454

55+
### Fixed
56+
57+
* A bug in the regex to parse output errors from gfortran
58+
* Now the spawn command uses the directory of the file `gfortran` is analyzing
59+
60+
## [0.6.2] - 2018-01-01
61+
62+
### Added
63+
64+
* Autoindentation rules for code blocks (thx @graceyangfan for the feature request)
65+
66+
### Fixed
67+
68+
* Fixed some highlighting issues by @pedro-ricardo

language-configuration.json

Lines changed: 53 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,55 @@
11
{
2-
"comments": {
3-
"lineComment": "!"
4-
},
5-
"brackets": [
6-
["[", "]"],
7-
["(", ")"],
8-
["(/", "/)"]
9-
],
10-
"autoClosingPairs": [
11-
{ "open": "[", "close": "]" },
12-
{ "open": "(", "close": ")" },
13-
{ "open": "(/", "close": "/)" }
14-
],
15-
"surroundingPairs": [
16-
["[", "]"],
17-
["(", ")"],
18-
["'", "'"],
19-
["\"", "\""]
20-
]
2+
"comments": {
3+
"lineComment": "!"
4+
},
5+
"brackets": [
6+
[
7+
"[",
8+
"]"
9+
],
10+
[
11+
"(",
12+
")"
13+
],
14+
[
15+
"(/",
16+
"/)"
17+
]
18+
],
19+
"autoClosingPairs": [
20+
{
21+
"open": "[",
22+
"close": "]"
23+
},
24+
{
25+
"open": "(",
26+
"close": ")"
27+
},
28+
{
29+
"open": "(/",
30+
"close": "/)"
31+
}
32+
],
33+
"surroundingPairs": [
34+
[
35+
"[",
36+
"]"
37+
],
38+
[
39+
"(",
40+
")"
41+
],
42+
[
43+
"'",
44+
"'"
45+
],
46+
[
47+
"\"",
48+
"\""
49+
]
50+
],
51+
"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)"
54+
}
2155
}

0 commit comments

Comments
 (0)