-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
fortran_fixed-form.tmLanguage.json
67 lines (67 loc) · 1.4 KB
/
fortran_fixed-form.tmLanguage.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"comment": "Inherits rules from free form Fortran.",
"name": "Fortran - Fixed Form",
"scopeName": "source.fortran.fixed",
"fileTypes": ["f", "F", "f77", "F77", "for", "FOR"],
"injections": {
"source.fortran.fixed - ( string | comment )": {
"patterns": [
{
"include": "#line-header"
},
{
"include": "#line-end-comment"
}
]
}
},
"patterns": [
{
"include": "#comments"
},
{
"include": "#line-header"
},
{
"include": "source.fortran.free"
}
],
"repository": {
"comments": {
"patterns": [
{
"name": "comment.line.fortran",
"begin": "^[cC\\*]",
"end": "\\n"
},
{
"name": "comment.line.fortran",
"begin": "^ *!",
"end": "\\n"
}
]
},
"line-end-comment": {
"name": "comment.line-end.fortran",
"begin": "(?<=^.{72})(?!\\n)",
"end": "(?=\\n)"
},
"line-header": {
"match": "^(?!\\s*[!#])(?:([ \\d]{5} )|( {5}.)|(\\t)|(.{1,5}))",
"captures": {
"1": {
"name": "constant.numeric.fortran"
},
"2": {
"name": "keyword.line-continuation-operator.fortran"
},
"3": {
"name": "source.fortran.free"
},
"4": {
"name": "invalid.error.fortran"
}
}
}
}
}