File tree 4 files changed +9
-10
lines changed
4 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,12 @@ Language Improvements:
8
8
- enh(java) Add support for ` record ` (#2685 ) [ Josh Goebel] [ ]
9
9
- fix(csharp) prevent modifier keywords wrongly flagged as ` title ` (#2683 ) [ Josh Goebel] [ ]
10
10
- enh(axapta) Update keyword list for Axapta (X++) (#2686 ) [ Ryan Jonasson] [ ]
11
+ - fix(fortran) FORTRAN 77-style comments (#2677 ) [ Philipp Engel] [ ]
11
12
12
13
[ David Pine ] : https://github.com/IEvangelist
13
14
[ Josh Goebel ] : https://github.com/yyyc514
14
15
[ Ryan Jonasson ] : https://github.com/ryanjonasson
16
+ [ Philipp Engel ] : https://github.com/interkosmos
15
17
[ Konrad Rudolph ] : https://github.com/klmr
16
18
17
19
## Version 10.2.0
Original file line number Diff line number Diff line change @@ -14,8 +14,9 @@ export default function(hljs) {
14
14
const COMMENT = {
15
15
variants : [
16
16
hljs . COMMENT ( '!' , '$' , { relevance : 0 } ) ,
17
- // allow Fortran 77 style comments
18
- hljs . COMMENT ( '^C' , '$' , { relevance : 0 } )
17
+ // allow FORTRAN 77 style comments
18
+ hljs . COMMENT ( '^C[ ]' , '$' , { relevance : 0 } ) ,
19
+ hljs . COMMENT ( '^C$' , '$' , { relevance : 0 } )
19
20
]
20
21
} ;
21
22
Original file line number Diff line number Diff line change 1
- <span class="hljs-comment">C</span>
2
- <span class="hljs-comment">C This program in FORTRAN 77 outputs "Hello, World!".</span>
3
- <span class="hljs-comment">C ====================================================</span>
4
-
5
1
<span class="hljs-comment">!===============================</span>
6
2
<span class="hljs-comment">! This is a test subroutine</span>
7
3
<span class="hljs-comment">!===============================</span>
11
7
C=<span class="hljs-number">2</span>
12
8
C = <span class="hljs-number">2</span> <span class="hljs-comment">!correct</span>
13
9
C =<span class="hljs-string">'boo'</span>
10
+
11
+ <span class="hljs-keyword">contains</span>
Original file line number Diff line number Diff line change 1
- C
2
- C This program in FORTRAN 77 outputs "Hello, World!".
3
- C ====================================================
4
-
5
1
!===============================
6
2
! This is a test subroutine
7
3
!===============================
@@ -11,3 +7,5 @@ C ====================================================
11
7
C=2
12
8
C = 2 !correct
13
9
C ='boo'
10
+
11
+ contains
You can’t perform that action at this time.
0 commit comments