Skip to content

Commit 0ed5976

Browse files
ararslanlildude
andauthored
Split Fortran into fixed and free source by file extension (#4753)
* Split Fortran into fixed and free source by file extension This permits applying a different tm_scope for modern Fortran. * Rename Fortran languages and update ID for new Fortran sub-lang * Fix extension order * Add Fortran Free Form to grammars list Co-authored-by: Colin Seymour <lildood@gmail.com>
1 parent 514d454 commit 0ed5976

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

lib/linguist/languages.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,22 +1533,32 @@ Forth:
15331533
codemirror_mime_type: text/x-forth
15341534
language_id: 114
15351535
Fortran:
1536+
group: Fortran
15361537
type: programming
15371538
color: "#4d41b1"
15381539
extensions:
1539-
- ".f90"
15401540
- ".f"
1541-
- ".f03"
1542-
- ".f08"
15431541
- ".f77"
1544-
- ".f95"
15451542
- ".for"
15461543
- ".fpp"
15471544
tm_scope: source.fortran
15481545
ace_mode: text
15491546
codemirror_mode: fortran
15501547
codemirror_mime_type: text/x-fortran
15511548
language_id: 107
1549+
Fortran Free Form:
1550+
group: Fortran
1551+
type: programming
1552+
extensions:
1553+
- ".f90"
1554+
- ".f03"
1555+
- ".f08"
1556+
- ".f95"
1557+
tm_scope: source.fortran.modern
1558+
ace_mode: text
1559+
codemirror_mode: fortran
1560+
codemirror_mime_type: text/x-fortran
1561+
language_id: 761352333
15521562
FreeMarker:
15531563
type: programming
15541564
color: "#0050b2"

vendor/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
127127
- **Faust:** [jpcima/language-faust](https://github.com/jpcima/language-faust)
128128
- **Forth:** [textmate/forth.tmbundle](https://github.com/textmate/forth.tmbundle)
129129
- **Fortran:** [textmate/fortran.tmbundle](https://github.com/textmate/fortran.tmbundle)
130+
- **Fortran Free Form:** [textmate/fortran.tmbundle](https://github.com/textmate/fortran.tmbundle)
130131
- **FreeMarker:** [freemarker/FreeMarker.tmbundle](https://github.com/freemarker/FreeMarker.tmbundle)
131132
- **Frege:** [atom-haskell/language-haskell](https://github.com/atom-haskell/language-haskell)
132133
- **G-code:** [appliedengdesign/vscode-gcode-syntax](https://github.com/appliedengdesign/vscode-gcode-syntax)

0 commit comments

Comments
 (0)