forked from highlightjs/highlight.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh(fortran) Add support for FORTRAN 77 style comments
Closes highlightjs#2310.
- Loading branch information
1 parent
effa09a
commit 1335ccd
Showing
3 changed files
with
41 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<span class="hljs-comment">C</span> | ||
<span class="hljs-comment">C This program in FORTRAN 77 outputs "Hello, World!".</span> | ||
<span class="hljs-comment">C ====================================================</span> | ||
|
||
<span class="hljs-comment">!===============================</span> | ||
<span class="hljs-comment">! This is a test subroutine</span> | ||
<span class="hljs-comment">!===============================</span> | ||
|
||
<span class="hljs-comment">! another comment</span> | ||
|
||
C=<span class="hljs-number">2</span> | ||
C = <span class="hljs-number">2</span> <span class="hljs-comment">!correct</span> | ||
C =<span class="hljs-string">'boo'</span> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
C | ||
C This program in FORTRAN 77 outputs "Hello, World!". | ||
C ==================================================== | ||
|
||
!=============================== | ||
! This is a test subroutine | ||
!=============================== | ||
|
||
! another comment | ||
|
||
C=2 | ||
C = 2 !correct | ||
C ='boo' |