annotate runtime/syntax/fortran.vim @ 21716:ba99b55d3fb7

Added tag v8.2.1407 for changeset 571832713efa4381d7390f0756b5db03a05301db
author Bram Moolenaar <Bram@vim.org>
date Sun, 09 Aug 2020 17:30:04 +0200
parents bd021eb62e73
children 17c4178f26ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
7384
aea5ebf352c4 commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents: 6530
diff changeset
2 " Language: Fortran 2008 (and older: Fortran 2003, 95, 90, and 77)
19303
51bc26d4a393 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18719
diff changeset
3 " Version: 102
20115
bd021eb62e73 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19303
diff changeset
4 " Last Change: 2020 Apr 20
bd021eb62e73 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19303
diff changeset
5 " Patched By: Eisuke Kawashima
6530
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
6 " Maintainer: Ajit J. Thakkar <ajit@unb.ca>; <http://www2.unb.ca/~ajit/>
2370
454f314d0e61 Make it possible to load Perl dynamically on Unix. (James Vega)
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
7 " Usage: For instructions, do :help fortran-syntax from Vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Credits:
18719
99586852c2db Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10385
diff changeset
9 " Version 0.1 for Fortran 95 was created (April 2000) by Ajit Thakkar from the
99586852c2db Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10385
diff changeset
10 " Fortran 77 syntax file by Mario Eusebio and Preben Guldberg.
99586852c2db Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10385
diff changeset
11 " Since then, useful suggestions and contributions have been made, in order, by:
8303
88207f4b861a commit https://github.com/vim/vim/commit/dae8d21dd291df6a6679a00be64e18bca0156576
Christian Brabandt <cb@256bit.org>
parents: 7384
diff changeset
12 " Andrej Panjkov, Bram Moolenaar, Thomas Olsen, Michael Sternberg, Christian Reile,
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " Walter Dieudonné, Alexander Wagner, Roman Bertle, Charles Rendleman,
9975
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
14 " Andrew Griffiths, Joe Krahn, Hendrik Merx, Matt Thompson, Jan Hermann,
18719
99586852c2db Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10385
diff changeset
15 " Stefano Zaghi, Vishnu V. Krishnan, Judicaël Grasset, and Takuma Yoshida
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
17 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3237
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2377
diff changeset
21 let s:cpo_save = &cpo
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2377
diff changeset
22 set cpo&vim
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2377
diff changeset
23
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
24 " Choose fortran_dialect using the priority:
7384
aea5ebf352c4 commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents: 6530
diff changeset
25 " source file directive > buffer-local value > global value > file extension
aea5ebf352c4 commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents: 6530
diff changeset
26 " first try using directive in first three lines of file
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
27 let b:fortran_retype = getline(1)." ".getline(2)." ".getline(3)
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
28 if b:fortran_retype =~? '\<fortran_dialect\s*=\s*F\>'
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
29 let b:fortran_dialect = "F"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
30 elseif b:fortran_retype =~? '\<fortran_dialect\s*=\s*f08\>'
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
31 let b:fortran_dialect = "f08"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
32 elseif !exists("b:fortran_dialect")
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
33 if exists("g:fortran_dialect") && g:fortran_dialect =~# '\<F\|f08\>'
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
34 " try global variable
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
35 let b:fortran_dialect = g:fortran_dialect
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
36 else " nothing found, so use default
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
37 let b:fortran_dialect = "f08"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 endif
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
40 unlet! b:fortran_retype
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
41 " make sure buffer-local value is not invalid
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
42 if b:fortran_dialect !~# '\<F\|f08\>'
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
43 let b:fortran_dialect = "f08"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 " Choose between fixed and free source form if this hasn't been done yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 if !exists("b:fortran_fixed_source")
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
48 if b:fortran_dialect == "F"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
49 " F requires free source form
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 let b:fortran_fixed_source = 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 elseif exists("fortran_free_source")
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
52 " User guarantees free source form for all fortran files
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 let b:fortran_fixed_source = 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 elseif exists("fortran_fixed_source")
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
55 " User guarantees fixed source form for all fortran files
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 let b:fortran_fixed_source = 1
20115
bd021eb62e73 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19303
diff changeset
57 elseif expand("%:e") =~? '^f\%(90\|95\|03\|08\)$'
7384
aea5ebf352c4 commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents: 6530
diff changeset
58 " Free-form file extension defaults as in Intel ifort, gcc(gfortran), NAG, Pathscale, and Cray compilers
aea5ebf352c4 commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents: 6530
diff changeset
59 let b:fortran_fixed_source = 0
20115
bd021eb62e73 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19303
diff changeset
60 elseif expand("%:e") =~? '^\%(f\|f77\|for\)$'
7384
aea5ebf352c4 commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents: 6530
diff changeset
61 " Fixed-form file extension defaults
aea5ebf352c4 commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents: 6530
diff changeset
62 let b:fortran_fixed_source = 1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 else
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
64 " Modern fortran still allows both free and fixed source form.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 " Assume fixed source form unless signs of free source form
2377
878562053ba3 Update Fortran indent and syntax file. (Ajit Thakkar)
Bram Moolenaar <bram@vim.org>
parents: 2370
diff changeset
66 " are detected in the first five columns of the first s:lmax lines.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 " Detection becomes more accurate and time-consuming if more lines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 " are checked. Increase the limit below if you keep lots of comments at
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 " the very top of each file and you have a fast computer.
2377
878562053ba3 Update Fortran indent and syntax file. (Ajit Thakkar)
Bram Moolenaar <bram@vim.org>
parents: 2370
diff changeset
70 let s:lmax = 500
878562053ba3 Update Fortran indent and syntax file. (Ajit Thakkar)
Bram Moolenaar <bram@vim.org>
parents: 2370
diff changeset
71 if ( s:lmax > line("$") )
878562053ba3 Update Fortran indent and syntax file. (Ajit Thakkar)
Bram Moolenaar <bram@vim.org>
parents: 2370
diff changeset
72 let s:lmax = line("$")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 let b:fortran_fixed_source = 1
2377
878562053ba3 Update Fortran indent and syntax file. (Ajit Thakkar)
Bram Moolenaar <bram@vim.org>
parents: 2370
diff changeset
75 let s:ln=1
878562053ba3 Update Fortran indent and syntax file. (Ajit Thakkar)
Bram Moolenaar <bram@vim.org>
parents: 2370
diff changeset
76 while s:ln <= s:lmax
878562053ba3 Update Fortran indent and syntax file. (Ajit Thakkar)
Bram Moolenaar <bram@vim.org>
parents: 2370
diff changeset
77 let s:test = strpart(getline(s:ln),0,5)
878562053ba3 Update Fortran indent and syntax file. (Ajit Thakkar)
Bram Moolenaar <bram@vim.org>
parents: 2370
diff changeset
78 if s:test !~ '^[Cc*]' && s:test !~ '^ *[!#]' && s:test =~ '[^ 0-9\t]' && s:test !~ '^[ 0-9]*\t'
7384
aea5ebf352c4 commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents: 6530
diff changeset
79 let b:fortran_fixed_source = 0
aea5ebf352c4 commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents: 6530
diff changeset
80 break
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 endif
2377
878562053ba3 Update Fortran indent and syntax file. (Ajit Thakkar)
Bram Moolenaar <bram@vim.org>
parents: 2370
diff changeset
82 let s:ln = s:ln + 1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 endwhile
2377
878562053ba3 Update Fortran indent and syntax file. (Ajit Thakkar)
Bram Moolenaar <bram@vim.org>
parents: 2370
diff changeset
84 unlet! s:lmax s:ln s:test
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
90 if b:fortran_fixed_source == 1
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
91 syn match fortranConstructName "^\s\{6,}\zs\a\w*\ze\s*:"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
92 else
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
93 syn match fortranConstructName "^\s*\zs\a\w*\ze\s*:"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
94 endif
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
95 if exists("fortran_more_precise")
18719
99586852c2db Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10385
diff changeset
96 syn match fortranConstructName "\(\<end\s*do\s\+\)\@11<=\a\w*"
99586852c2db Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10385
diff changeset
97 syn match fortranConstructName "\(\<end\s*if\s\+\)\@11<=\a\w*"
99586852c2db Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10385
diff changeset
98 syn match fortranConstructName "\(\<end\s*select\s\+\)\@15<=\a\w*"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
101 syn match fortranUnitHeader "\<end\>"
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 7
diff changeset
102 syn match fortranType "\<character\>"
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 7
diff changeset
103 syn match fortranType "\<complex\>"
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 7
diff changeset
104 syn match fortranType "\<integer\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn keyword fortranType intrinsic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn match fortranType "\<implicit\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn keyword fortranStructure dimension
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn keyword fortranStorageClass parameter save
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 syn match fortranUnitHeader "\<subroutine\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 syn keyword fortranCall call
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn match fortranUnitHeader "\<function\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syn match fortranUnitHeader "\<program\>"
9975
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
113 syn match fortranUnitHeader "\<block\>"
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 7
diff changeset
114 syn keyword fortranKeyword return stop
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 syn keyword fortranConditional else then
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn match fortranConditional "\<if\>"
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
117 syn match fortranConditionalOb "\<if\s*(.*)\s*\d\+\s*,\s*\d\+\s*,\s*\d\+\s*$"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 syn match fortranRepeat "\<do\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 syn keyword fortranTodo contained todo fixme
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 "Catch errors caused by too many right parentheses
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 7
diff changeset
123 syn region fortranParen transparent start="(" end=")" contains=ALLBUT,fortranParenError,@fortranCommentGroup,cIncluded,@spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 syn match fortranParenError ")"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 syn match fortranOperator "\.\s*n\=eqv\s*\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 syn match fortranOperator "\.\s*\(and\|or\|not\)\s*\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 syn match fortranOperator "\(+\|-\|/\|\*\)"
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
129 syn match fortranTypeOb "\<character\s*\*"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 syn match fortranBoolean "\.\s*\(true\|false\)\s*\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 7
diff changeset
133 syn keyword fortranReadWrite backspace close endfile inquire open print read rewind write
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 "If tabs are allowed then the left margin checks do not work
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 if exists("fortran_have_tabs")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 syn match fortranTab "\t" transparent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 syn match fortranTab "\t"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 7
diff changeset
142 syn keyword fortranIO access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
144 syn keyword fortranIntrinsicR alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 " Intrinsics provided by some vendors
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
147 syn keyword fortranExtraIntrinsic algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
149 syn keyword fortranIntrinsic abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
150 syn match fortranIntrinsic "\<len\s*[(,]"me=s+3
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
151 syn match fortranIntrinsic "\<real\s*("me=s+4
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 syn match fortranType "\<implicit\s\+real"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 syn match fortranType "^\s*real\>"
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
154 syn match fortranIntrinsic "\<logical\s*("me=s+7
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 syn match fortranType "\<implicit\s\+logical"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn match fortranType "^\s*logical\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 "Numbers of various sorts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 " Integers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 syn match fortranNumber display "\<\d\+\(_\a\w*\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 " floating point number, without a decimal point
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
162 syn match fortranFloatIll display "\<\d\+[deq][-+]\=\d\+\(_\a\w*\)\=\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 " floating point number, starting with a decimal point
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
164 syn match fortranFloatIll display "\.\d\+\([deq][-+]\=\d\+\)\=\(_\a\w*\)\=\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 " floating point number, no digits after decimal
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
166 syn match fortranFloatIll display "\<\d\+\.\([deq][-+]\=\d\+\)\=\(_\a\w*\)\=\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 " floating point number, D or Q exponents
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
168 syn match fortranFloatIll display "\<\d\+\.\d\+\([dq][-+]\=\d\+\)\=\(_\a\w*\)\=\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 " floating point number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 syn match fortranFloat display "\<\d\+\.\d\+\(e[-+]\=\d\+\)\=\(_\a\w*\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 " Numbers in formats
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 syn match fortranFormatSpec display "\d*f\d\+\.\d\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 syn match fortranFormatSpec display "\d*e[sn]\=\d\+\.\d\+\(e\d+\>\)\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 syn match fortranFormatSpec display "\d*\(d\|q\|g\)\d\+\.\d\+\(e\d+\)\="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 syn match fortranFormatSpec display "\d\+x\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 " The next match cannot be used because it would pick up identifiers as well
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 " syn match fortranFormatSpec display "\<\(a\|i\)\d\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 " Numbers as labels
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 syn match fortranLabelNumber display "^\d\{1,5}\s"me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 syn match fortranLabelNumber display "^ \d\{1,4}\s"ms=s+1,me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 syn match fortranLabelNumber display "^ \d\{1,3}\s"ms=s+2,me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 syn match fortranLabelNumber display "^ \d\d\=\s"ms=s+3,me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 syn match fortranLabelNumber display "^ \d\s"ms=s+4,me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
186 if exists("fortran_more_precise")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 " Numbers as targets
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 syn match fortranTarget display "\(\<if\s*(.\+)\s*\)\@<=\(\d\+\s*,\s*\)\{2}\d\+\>"
19303
51bc26d4a393 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18719
diff changeset
189 syn match fortranTarget display "\(\<do\s\+\)\@11<=\d\+\>"
51bc26d4a393 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18719
diff changeset
190 syn match fortranTarget display "\(\<go\s*to\s*(\=\)\@11<=\(\d\+\s*,\s*\)*\d\+\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
193 syn keyword fortranTypeR external
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
194 syn keyword fortranIOR format
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
195 syn match fortranKeywordR "\<continue\>"
2370
454f314d0e61 Make it possible to load Perl dynamically on Unix. (James Vega)
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
196 syn match fortranKeyword "^\s*\d\+\s\+continue\>"
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
197 syn match fortranKeyword "\<go\s*to\>"
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
198 syn match fortranKeywordDel "\<go\s*to\ze\s\+.*,\s*(.*$"
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
199 syn match fortranKeywordOb "\<go\s*to\ze\s*(\d\+.*$"
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
200 syn region fortranStringR start=+'+ end=+'+ contains=fortranContinueMark,fortranLeftMargin,fortranSerialNumber
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
201 syn keyword fortranIntrinsicR dim lge lgt lle llt mod
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
202 syn keyword fortranKeywordDel assign pause
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
204 syn match fortranType "\<type\>"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
205 syn keyword fortranType none
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
207 syn keyword fortranStructure private public intent optional
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
208 syn keyword fortranStructure pointer target allocatable
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
209 syn keyword fortranStorageClass in out
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
210 syn match fortranStorageClass "\<kind\s*="me=s+4
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
211 syn match fortranStorageClass "\<len\s*="me=s+3
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
213 syn match fortranUnitHeader "\<module\>"
9975
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
214 syn match fortranUnitHeader "\<submodule\>"
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
215 syn keyword fortranUnitHeader use only contains
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
216 syn keyword fortranUnitHeader result operator assignment
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
217 syn match fortranUnitHeader "\<interface\>"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
218 syn match fortranUnitHeader "\<recursive\>"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
219 syn keyword fortranKeyword allocate deallocate nullify cycle exit
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
220 syn match fortranConditional "\<select\>"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
221 syn keyword fortranConditional case default where elsewhere
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
223 syn match fortranOperator "\(\(>\|<\)=\=\|==\|/=\|=\)"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
224 syn match fortranOperator "=>"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
225
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
226 syn region fortranString start=+"+ end=+"+ contains=fortranLeftMargin,fortranContinueMark,fortranSerialNumber
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
227 syn keyword fortranIO pad position action delim readwrite
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
228 syn keyword fortranIO eor advance nml
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
230 syn keyword fortranIntrinsic adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack precision present product radix random_number random_seed range repeat reshape rrspacing
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
231 syn keyword fortranIntrinsic scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
232 syn match fortranIntrinsic "\<not\>\(\s*\.\)\@!"me=s+3
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
233 syn match fortranIntrinsic "\<kind\>\s*[(,]"me=s+4
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
235 syn match fortranUnitHeader "\<end\s*function"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
236 syn match fortranUnitHeader "\<end\s*interface"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
237 syn match fortranUnitHeader "\<end\s*module"
9975
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
238 syn match fortranUnitHeader "\<end\s*submodule"
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
239 syn match fortranUnitHeader "\<end\s*program"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
240 syn match fortranUnitHeader "\<end\s*subroutine"
9975
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
241 syn match fortranUnitHeader "\<end\s*block"
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
242 syn match fortranRepeat "\<end\s*do"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
243 syn match fortranConditional "\<end\s*where"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
244 syn match fortranConditional "\<select\s*case"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
245 syn match fortranConditional "\<end\s*select"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
246 syn match fortranType "\<end\s*type"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
247 syn match fortranType "\<in\s*out"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248
3682
11d40fc82f11 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3281
diff changeset
249 syn keyword fortranType procedure
11d40fc82f11 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3281
diff changeset
250 syn match fortranType "\<module\ze\s\+procedure\>"
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
251 syn keyword fortranIOR namelist
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
252 syn keyword fortranConditionalR while
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
253 syn keyword fortranIntrinsicR achar iachar transfer
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
255 syn keyword fortranInclude include
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
256 syn keyword fortranStorageClassR sequence
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 syn match fortranConditional "\<end\s*if"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 syn match fortranIO contains=fortranOperator "\<e\(nd\|rr\)\s*=\s*\d\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 syn match fortranConditional "\<else\s*if"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
262 syn keyword fortranUnitHeaderOb entry
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 syn match fortranTypeR display "double\s\+precision"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 syn match fortranTypeR display "double\s\+complex"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 syn match fortranUnitHeaderR display "block\s\+data"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 syn keyword fortranStorageClassR common equivalence data
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
267 syn keyword fortranIntrinsicR dble dprod
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
268 syn match fortranOperatorR "\.\s*[gl][et]\s*\."
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
269 syn match fortranOperatorR "\.\s*\(eq\|ne\)\s*\."
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
271 syn keyword fortranRepeat forall
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
272 syn match fortranRepeat "\<end\s*forall"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
273 syn keyword fortranIntrinsic null cpu_time
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
274 syn match fortranType "\<elemental\>"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
275 syn match fortranType "\<pure\>"
9975
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
276 syn match fortranType "\<impure\>"
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
277 if exists("fortran_more_precise")
19303
51bc26d4a393 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18719
diff changeset
278 syn match fortranConstructName "\(\<end\s*forall\s\+\)\@15<=\a\w*\>"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
281 if b:fortran_dialect == "f08"
2370
454f314d0e61 Make it possible to load Perl dynamically on Unix. (James Vega)
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
282 " F2003
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
283 syn keyword fortranIntrinsic command_argument_count get_command get_command_argument get_environment_variable is_iostat_end is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of
2370
454f314d0e61 Make it possible to load Perl dynamically on Unix. (James Vega)
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
284 " ISO_C_binding
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
285 syn keyword fortranConstant c_null_char c_alert c_backspace c_form_feed c_new_line c_carriage_return c_horizontal_tab c_vertical_tab
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
286 syn keyword fortranConstant c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
287 syn keyword fortranIntrinsic iso_c_binding c_loc c_funloc c_associated c_f_pointer c_f_procpointer
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
288 syn keyword fortranType c_ptr c_funptr
2370
454f314d0e61 Make it possible to load Perl dynamically on Unix. (James Vega)
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
289 " ISO_Fortran_env
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
290 syn keyword fortranConstant iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit
2370
454f314d0e61 Make it possible to load Perl dynamically on Unix. (James Vega)
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
291 " IEEE_arithmetic
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
292 syn keyword fortranIntrinsic ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode
2370
454f314d0e61 Make it possible to load Perl dynamically on Unix. (James Vega)
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
293
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
294 syn keyword fortranReadWrite flush wait
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
295 syn keyword fortranIO decimal round iomsg
9975
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
296 syn keyword fortranType asynchronous nopass non_overridable pass protected volatile extends import
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
297 syn keyword fortranType non_intrinsic value bind deferred generic final enumerator
9975
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
298 syn match fortranType "\<abstract\>"
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
299 syn match fortranType "\<class\>"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
300 syn match fortranType "\<associate\>"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
301 syn match fortranType "\<end\s*associate"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
302 syn match fortranType "\<enum\s*,\s*bind\s*(\s*c\s*)"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
303 syn match fortranType "\<end\s*enum"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
304 syn match fortranConditional "\<select\s*type"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
305 syn match fortranConditional "\<type\s*is\>"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
306 syn match fortranConditional "\<class\s*is\>"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
307 syn match fortranUnitHeader "\<abstract\s*interface\>"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
308 syn match fortranOperator "\([\|]\)"
2370
454f314d0e61 Make it possible to load Perl dynamically on Unix. (James Vega)
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
309
454f314d0e61 Make it possible to load Perl dynamically on Unix. (James Vega)
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
310 " F2008
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
311 syn keyword fortranIntrinsic acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
312 syn keyword fortranIntrinsic atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
313 syn keyword fortranIntrinsic bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
314 syn keyword fortranIO newunit
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
315 syn keyword fortranType contiguous
9975
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
316 syn keyword fortranRepeat concurrent
6530
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
317
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
318 " CUDA fortran
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
319 syn match fortranTypeCUDA "\<attributes\>"
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
320 syn keyword fortranTypeCUDA host global device value
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
321 syn keyword fortranTypeCUDA shared constant pinned texture
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
322 syn keyword fortranTypeCUDA dim1 dim2 dim3 dim4
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
323 syn keyword fortranTypeCUDA cudadeviceprop cuda_count_kind cuda_stream_kind
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
324 syn keyword fortranTypeCUDA cudaEvent cudaFuncAttributes cudaArrayPtr
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
325 syn keyword fortranTypeCUDA cudaSymbol cudaChannelFormatDesc cudaPitchedPtr
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
326 syn keyword fortranTypeCUDA cudaExtent cudaMemcpy3DParms
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
327 syn keyword fortranTypeCUDA cudaFuncCachePreferNone cudaFuncCachePreferShared
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
328 syn keyword fortranTypeCUDA cudaFuncCachePreferL1 cudaLimitStackSize
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
329 syn keyword fortranTypeCUDA cudaLimitPrintfSize cudaLimitMallocHeapSize
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
330 syn keyword fortranTypeCUDA cudaSharedMemBankSizeDefault cudaSharedMemBankSizeFourByte cudaSharedMemBankSizeEightByte
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
331 syn keyword fortranTypeCUDA cudaEventDefault cudaEventBlockingSync cudaEventDisableTiming
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
332 syn keyword fortranTypeCUDA cudaMemcpyHostToDevice cudaMemcpyDeviceToHost
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
333 syn keyword fortranTypeCUDA cudaMemcpyDeviceToDevice
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
334 syn keyword fortranTypeCUDA cudaErrorNotReady cudaSuccess cudaErrorInvalidValue
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
335 syn keyword fortranTypeCUDA c_devptr
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
336
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
337 syn match fortranStringCUDA "blockidx%[xyz]"
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
338 syn match fortranStringCUDA "blockdim%[xyz]"
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
339 syn match fortranStringCUDA "griddim%[xyz]"
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
340 syn match fortranStringCUDA "threadidx%[xyz]"
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
341
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
342 syn keyword fortranIntrinsicCUDA warpsize syncthreads syncthreads_and syncthreads_count syncthreads_or threadfence threadfence_block threadfence_system gpu_time allthreads anythread ballot
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
343 syn keyword fortranIntrinsicCUDA atomicadd atomicsub atomicmax atomicmin atomicand atomicor atomicxor atomicexch atomicinc atomicdec atomiccas sizeof __shfl __shfl_up __shfl_down __shfl_xor
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
344 syn keyword fortranIntrinsicCUDA cudaChooseDevice cudaDeviceGetCacheConfig cudaDeviceGetLimit cudaDeviceGetSharedMemConfig cudaDeviceReset cudaDeviceSetCacheConfig cudaDeviceSetLimit cudaDeviceSetSharedMemConfig cudaDeviceSynchronize cudaGetDevice cudaGetDeviceCount cudaGetDeviceProperties cudaSetDevice cudaSetDeviceFlags cudaSetValidDevices
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
345 syn keyword fortranIntrinsicCUDA cudaThreadExit cudaThreadSynchronize cudaGetLastError cudaGetErrorString cudaPeekAtLastError cudaStreamCreate cudaStreamDestroy cudaStreamQuery cudaStreamSynchronize cudaStreamWaitEvent cudaEventCreate cudaEventCreateWithFlags cudaEventDestroy cudaEventElapsedTime cudaEventQuery cudaEventRecord cudaEventSynchronize
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
346 syn keyword fortranIntrinsicCUDA cudaFuncGetAttributes cudaFuncSetCacheConfig cudaFuncSetSharedMemConfig cudaSetDoubleForDevice cudaSetDoubleForHost cudaFree cudaFreeArray cudaFreeHost cudaGetSymbolAddress cudaGetSymbolSize
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
347 syn keyword fortranIntrinsicCUDA cudaHostAlloc cudaHostGetDevicePointer cudaHostGetFlags cudaHostRegister cudaHostUnregister cudaMalloc cudaMallocArray cudaMallocHost cudaMallocPitch cudaMalloc3D cudaMalloc3DArray
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
348 syn keyword fortranIntrinsicCUDA cudaMemcpy cudaMemcpyArraytoArray cudaMemcpyAsync cudaMemcpyFromArray cudaMemcpyFromSymbol cudaMemcpyFromSymbolAsync cudaMemcpyPeer cudaMemcpyPeerAsync cudaMemcpyToArray cudaMemcpyToSymbol cudaMemcpyToSymbolAsync cudaMemcpy2D cudaMemcpy2DArrayToArray cudaMemcpy2DAsync cudaMemcpy2DFromArray cudaMemcpy2DToArray cudaMemcpy3D cudaMemcpy3DAsync
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
349 syn keyword fortranIntrinsicCUDA cudaMemGetInfo cudaMemset cudaMemset2D cudaMemset3D cudaDeviceCanAccessPeer cudaDeviceDisablePeerAccess cudaDeviceEnablePeerAccess cudaPointerGetAttributes cudaDriverGetVersion cudaRuntimeGetVersion
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
350
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
351 syn region none matchgroup=fortranType start="<<<" end=">>>" contains=ALLBUT,none
2370
454f314d0e61 Make it possible to load Perl dynamically on Unix. (James Vega)
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
352 endif
454f314d0e61 Make it possible to load Perl dynamically on Unix. (James Vega)
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
353
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
354 syn cluster fortranCommentGroup contains=fortranTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356 if (b:fortran_fixed_source == 1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357 if !exists("fortran_have_tabs")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
358 "Flag items beyond column 72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
359 syn match fortranSerialNumber excludenl "^.\{73,}$"lc=72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
360 "Flag left margin errors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361 syn match fortranLabelError "^.\{-,4}[^0-9 ]" contains=fortranTab
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362 syn match fortranLabelError "^.\{4}\d\S"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363 endif
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 840
diff changeset
364 syn match fortranComment excludenl "^[!c*].*$" contains=@fortranCommentGroup,@spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365 syn match fortranLeftMargin transparent "^ \{5}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
366 syn match fortranContinueMark display "^.\{5}\S"lc=5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
368 syn match fortranContinueMark display "&"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
371 syn match fortranComment excludenl "!.*$" contains=@fortranCommentGroup,@spell
10228
8a1481e59d64 commit https://github.com/vim/vim/commit/3e496b0ea31996b665824f45664dee1fdd73c4d0
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
372 syn match fortranOpenMP excludenl "^\s*!\$\(OMP\)\=&\=\s.*$"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
374 "cpp is often used with Fortran
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
375 syn match cPreProc "^\s*#\s*\(define\|ifdef\)\>.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
376 syn match cPreProc "^\s*#\s*\(elif\|if\)\>.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377 syn match cPreProc "^\s*#\s*\(ifndef\|undef\)\>.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378 syn match cPreCondit "^\s*#\s*\(else\|endif\)\>.*"
18719
99586852c2db Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10385
diff changeset
379 syn region cIncluded contained start=+"[^("]+ skip=+\\\\\|\\"+ end=+"+ contains=fortranLeftMargin,fortranContinueMark,fortranSerialNumber
99586852c2db Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 10385
diff changeset
380 "syn region cIncluded contained start=+"[^("]+ skip=+\\\\\|\\"+ end=+"+
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
381 syn match cIncluded contained "<[^>]*>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
382 syn match cInclude "^\s*#\s*include\>\s*["<]" contains=cIncluded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384 "Synchronising limits assume that comment and continuation lines are not mixed
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 7
diff changeset
385 if exists("fortran_fold") || exists("fortran_more_precise")
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 7
diff changeset
386 syn sync fromstart
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 7
diff changeset
387 elseif (b:fortran_fixed_source == 0)
2370
454f314d0e61 Make it possible to load Perl dynamically on Unix. (James Vega)
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
388 syn sync linecont "&" minlines=30
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
389 else
2370
454f314d0e61 Make it possible to load Perl dynamically on Unix. (James Vega)
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
390 syn sync minlines=30
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
391 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
392
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
393 if exists("fortran_fold")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
394
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
395 if (b:fortran_fixed_source == 1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
396 syn region fortranProgram transparent fold keepend start="^\s*program\s\+\z(\a\w*\)" skip="^\([!c*]\|\s*#\).*$" excludenl end="\<end\s*\(program\(\s\+\z1\>\)\=\|$\)" contains=ALLBUT,fortranModule
9975
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
397 syn region fortranModule transparent fold keepend start="^\s*submodule\s\+(\a\w*\s*\(:\a\w*\s*\)*)\s*\z\(\a\w*\)" skip="^\([!c*]\|\s*#\).*$" excludenl end="\<end\s*\(submodule\(\s\+\z1\>\)\=\|$\)" contains=ALLBUT,fortranProgram,fortranModule
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
398 syn region fortranModule transparent fold keepend start="^\s*module\s\+\(procedure\)\@!\z(\a\w*\)" skip="^\([!c*]\|\s*#\).*$" excludenl end="\<end\s*\(module\(\s\+\z1\>\)\=\|$\)" contains=ALLBUT,fortranProgram
9975
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
399 syn region fortranFunction transparent fold keepend extend start="^\s*\(elemental \|pure \|impure \|module \|recursive \)\=\s*\(\(\(real \|integer \|logical \|complex \|double \s*precision \)\s*\((\(\s*kind\s*=\)\=\s*\w\+\s*)\)\=\)\|type\s\+(\s*\w\+\s*) \|character \((\(\s*len\s*=\)\=\s*\d\+\s*)\|(\(\s*kind\s*=\)\=\s*\w\+\s*)\)\=\)\=\s*function\s\+\z(\a\w*\)" skip="^\([!c*]\|\s*#\).*$" excludenl end="\<end\s*\($\|function\(\s\+\z1\>\)\=\)" contains=ALLBUT,fortranProgram,fortranModule
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
400 syn region fortranSubroutine transparent fold keepend extend start="^\s*\(elemental \|pure \|impure \|module \|recursive \)\=\s*subroutine\s\+\z(\a\w*\)" skip="^\([!c*]\|\s*#\).*$" excludenl end="\<end\s*\($\|subroutine\(\s\+\z1\>\)\=\)" contains=ALLBUT,fortranProgram,fortranModule
2370
454f314d0e61 Make it possible to load Perl dynamically on Unix. (James Vega)
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
401 syn region fortranBlockData transparent fold keepend start="\<block\s*data\(\s\+\z(\a\w*\)\)\=" skip="^\([!c*]\|\s*#\).*$" excludenl end="\<end\s*\($\|block\s*data\(\s\+\z1\>\)\=\)" contains=ALLBUT,fortranProgram,fortranModule,fortranSubroutine,fortranFunction,fortran77Loop,fortranCase,fortran90Loop,fortranIfBlock
10385
368468ef35cf commit https://github.com/vim/vim/commit/c0514bf4777a1d55f5785b3887c5686fd0bbe870
Christian Brabandt <cb@256bit.org>
parents: 10228
diff changeset
402 syn region fortranAssociate transparent fold keepend start="^\s*\<associate\s\+" skip="^\([!c*]\|\s*#\).*$" excludenl end="\<end\s*associate" contains=ALLBUT,fortranProgram,fortranModule,fortranSubroutine,fortranFunction
9975
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
403 syn region fortranInterface transparent fold keepend extend start="^\s*\(abstract \)\=\s*interface\>" skip="^\([!c*]\|\s*#\).*$" excludenl end="\<end\s*interface\>" contains=ALLBUT,fortranProgram,fortranModule,fortran77Loop,fortranCase,fortran90Loop,fortranIfBlock
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
404 syn region fortranTypeDef transparent fold keepend extend start="^\s*type\s*\(,\s*\(public\|private\|abstract\)\)\=\s*::" skip="^\([!c*]\|\s*#\).*$" excludenl end="\<end\s*type\>" contains=ALLBUT,fortranProgram,fortranModule,fortran77Loop,fortranCase,fortran90Loop,fortranIfBlock,fortranInterface
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
405 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
406 syn region fortranProgram transparent fold keepend start="^\s*program\s\+\z(\a\w*\)" skip="^\s*[!#].*$" excludenl end="\<end\s*\(program\(\s\+\z1\>\)\=\|$\)" contains=ALLBUT,fortranModule
9975
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
407 syn region fortranModule transparent fold keepend start="^\s*submodule\s\+(\a\w*\s*\(:\a\w*\s*\)*)\s*\z\(\a\w*\)" skip="^\s*[!#].*$" excludenl end="\<end\s*\(submodule\(\s\+\z1\>\)\=\|$\)" contains=ALLBUT,fortranProgram,fortranModule
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
408 syn region fortranModule transparent fold keepend start="^\s*module\s\+\(procedure\)\@!\z(\a\w*\)" skip="^\s*[!#].*$" excludenl end="\<end\s*\(module\(\s\+\z1\>\)\=\|$\)" contains=ALLBUT,fortranProgram
9975
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
409 syn region fortranFunction transparent fold keepend extend start="^\s*\(elemental \|pure \|impure \|module \|recursive \)\=\s*\(\(\(real \|integer \|logical \|complex \|double \s*precision \)\s*\((\(\s*kind\s*=\)\=\s*\w\+\s*)\)\=\)\|type\s\+(\s*\w\+\s*) \|character \((\(\s*len\s*=\)\=\s*\d\+\s*)\|(\(\s*kind\s*=\)\=\s*\w\+\s*)\)\=\)\=\s*function\s\+\z(\a\w*\)" skip="^\s*[!#].*$" excludenl end="\<end\s*\($\|function\(\s\+\z1\>\)\=\)" contains=ALLBUT,fortranProgram,fortranModule
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
410 syn region fortranSubroutine transparent fold keepend extend start="^\s*\(elemental \|pure \|impure \|module \|recursive \)\=\s*subroutine\s\+\z(\a\w*\)" skip="^\s*[!#].*$" excludenl end="\<end\s*\($\|subroutine\(\s\+\z1\>\)\=\)" contains=ALLBUT,fortranProgram,fortranModule
2370
454f314d0e61 Make it possible to load Perl dynamically on Unix. (James Vega)
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
411 syn region fortranBlockData transparent fold keepend start="\<block\s*data\(\s\+\z(\a\w*\)\)\=" skip="^\s*[!#].*$" excludenl end="\<end\s*\($\|block\s*data\(\s\+\z1\>\)\=\)" contains=ALLBUT,fortranProgram,fortranModule,fortranSubroutine,fortranFunction,fortran77Loop,fortranCase,fortran90Loop,fortranIfBlock
10385
368468ef35cf commit https://github.com/vim/vim/commit/c0514bf4777a1d55f5785b3887c5686fd0bbe870
Christian Brabandt <cb@256bit.org>
parents: 10228
diff changeset
412 syn region fortranAssociate transparent fold keepend start="^\s*\<associate\s\+" skip="^\s*[!#].*$" excludenl end="\<end\s*associate" contains=ALLBUT,fortranProgram,fortranModule,fortranSubroutine,fortranFunction
9975
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
413 syn region fortranInterface transparent fold keepend extend start="^\s*\(abstract \)\=\s*interface\>" skip="^\s*[!#].*$" excludenl end="\<end\s*interface\>" contains=ALLBUT,fortranProgram,fortranModule,fortran77Loop,fortranCase,fortran90Loop,fortranIfBlock
03fa8a51e9dc commit https://github.com/vim/vim/commit/e4a3bcf28d92d0bde9ca227ccb40d401038185e5
Christian Brabandt <cb@256bit.org>
parents: 8303
diff changeset
414 syn region fortranTypeDef transparent fold keepend extend start="^\s*type\s*\(,\s*\(public\|private\|abstract\)\)\=\s*::" skip="^\s*[!#].*$" excludenl end="\<end\s*type\>" contains=ALLBUT,fortranProgram,fortranModule,fortran77Loop,fortranCase,fortran90Loop,fortranIfBlock,fortranInterface
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
415 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
416
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417 if exists("fortran_fold_conditionals")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
418 if (b:fortran_fixed_source == 1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
419 syn region fortran77Loop transparent fold keepend start="\<do\s\+\z(\d\+\)" end="^\s*\z1\>" contains=ALLBUT,fortranUnitHeader,fortranStructure,fortranStorageClass,fortranType,fortranProgram,fortranModule,fortranSubroutine,fortranFunction,fortranBlockData
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420 syn region fortran90Loop transparent fold keepend extend start="\(\<end\s\+\)\@<!\<do\(\s\+\a\|\s*$\)" skip="^\([!c*]\|\s*#\).*$" excludenl end="\<end\s*do\>" contains=ALLBUT,fortranUnitHeader,fortranStructure,fortranStorageClass,fortranType,fortranProgram,fortranModule,fortranSubroutine,fortranFunction,fortranBlockData
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
421 syn region fortranIfBlock transparent fold keepend extend start="\(\<e\(nd\|lse\)\s\+\)\@<!\<if\s*(.\+)\s*then\>" skip="^\([!c*]\|\s*#\).*$" end="\<end\s*if\>" contains=ALLBUT,fortranUnitHeader,fortranStructure,fortranStorageClass,fortranType,fortranProgram,fortranModule,fortranSubroutine,fortranFunction,fortranBlockData
10385
368468ef35cf commit https://github.com/vim/vim/commit/c0514bf4777a1d55f5785b3887c5686fd0bbe870
Christian Brabandt <cb@256bit.org>
parents: 10228
diff changeset
422 syn region fortranCase transparent fold keepend extend start="\<select\s*\(case\|type\)\>" skip="^\([!c*]\|\s*#\).*$" end="\<end\s*select\>" contains=ALLBUT,fortranUnitHeader,fortranStructure,fortranStorageClass,fortranType,fortranProgram,fortranModule,fortranSubroutine,fortranFunction,fortranBlockData
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
423 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
424 syn region fortran77Loop transparent fold keepend start="\<do\s\+\z(\d\+\)" end="^\s*\z1\>" contains=ALLBUT,fortranUnitHeader,fortranStructure,fortranStorageClass,fortranType,fortranProgram,fortranModule,fortranSubroutine,fortranFunction,fortranBlockData
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425 syn region fortran90Loop transparent fold keepend extend start="\(\<end\s\+\)\@<!\<do\(\s\+\a\|\s*$\)" skip="^\s*[!#].*$" excludenl end="\<end\s*do\>" contains=ALLBUT,fortranUnitHeader,fortranStructure,fortranStorageClass,fortranType,fortranProgram,fortranModule,fortranSubroutine,fortranFunction,fortranBlockData
8303
88207f4b861a commit https://github.com/vim/vim/commit/dae8d21dd291df6a6679a00be64e18bca0156576
Christian Brabandt <cb@256bit.org>
parents: 7384
diff changeset
426 syn region fortranIfBlock transparent fold keepend extend start="\(\<e\(nd\|lse\)\s\+\)\@<!\<if\s*(\(.\|&\s*\n\)\+)\(\s\|&\s*\n\)*then\>" skip="^\s*[!#].*$" end="\<end\s*if\>" contains=ALLBUT,fortranUnitHeader,fortranStructure,fortranStorageClass,fortranType,fortranProgram,fortranModule,fortranSubroutine,fortranFunction,fortranBlockData
10385
368468ef35cf commit https://github.com/vim/vim/commit/c0514bf4777a1d55f5785b3887c5686fd0bbe870
Christian Brabandt <cb@256bit.org>
parents: 10228
diff changeset
427 syn region fortranCase transparent fold keepend extend start="\<select\s*\(case\|type\)\>" skip="^\s*[!#].*$" end="\<end\s*select\>" contains=ALLBUT,fortranUnitHeader,fortranStructure,fortranStorageClass,fortranType,fortranProgram,fortranModule,fortranSubroutine,fortranFunction,fortranBlockData
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
428 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
429 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
430
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
431 if exists("fortran_fold_multilinecomments")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
432 if (b:fortran_fixed_source == 1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
433 syn match fortranMultiLineComments transparent fold "\(^[!c*].*\(\n\|\%$\)\)\{4,}" contains=ALLBUT,fortranMultiCommentLines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
434 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
435 syn match fortranMultiLineComments transparent fold "\(^\s*!.*\(\n\|\%$\)\)\{4,}" contains=ALLBUT,fortranMultiCommentLines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
436 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
437 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
438 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
439
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
440 " Define the default highlighting.
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
441 " The default highlighting differs for each dialect.
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
442 " Transparent groups:
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
443 " fortranParen, fortranLeftMargin
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
444 " fortranProgram, fortranModule, fortranSubroutine, fortranFunction,
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
445 " fortranBlockData
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
446 " fortran77Loop, fortran90Loop, fortranIfBlock, fortranCase
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
447 " fortranMultiCommentLines
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
448 hi def link fortranKeyword Keyword
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
449 hi def link fortranConstructName Identifier
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
450 hi def link fortranConditional Conditional
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
451 hi def link fortranRepeat Repeat
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
452 hi def link fortranTodo Todo
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
453 hi def link fortranContinueMark Special
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
454 hi def link fortranString String
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
455 hi def link fortranNumber Number
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
456 hi def link fortranOperator Operator
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
457 hi def link fortranBoolean Boolean
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
458 hi def link fortranLabelError Error
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
459 hi def link fortranObsolete Todo
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
460 hi def link fortranType Type
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
461 hi def link fortranStructure Type
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
462 hi def link fortranStorageClass StorageClass
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
463 hi def link fortranCall Function
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
464 hi def link fortranUnitHeader fortranPreCondit
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
465 hi def link fortranReadWrite Keyword
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
466 hi def link fortranIO Keyword
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
467 hi def link fortranIntrinsic Function
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
468 hi def link fortranConstant Constant
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
469
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
470 " To stop deleted & obsolescent features being highlighted as Todo items,
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
471 " comment out the next 5 lines and uncomment the 5 lines after that
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
472 hi def link fortranUnitHeaderOb fortranObsolete
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
473 hi def link fortranKeywordOb fortranObsolete
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
474 hi def link fortranConditionalOb fortranObsolete
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
475 hi def link fortranTypeOb fortranObsolete
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
476 hi def link fortranKeywordDel fortranObsolete
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
477 "hi def link fortranUnitHeaderOb fortranUnitHeader
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
478 "hi def link fortranKeywordOb fortranKeyword
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
479 "hi def link fortranConditionalOb fortranConditional
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
480 "hi def link fortranTypeOb fortranType
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
481 "hi def link fortranKeywordDel fortranKeyword
3256
ba708ee8d69d Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3237
diff changeset
482
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
483 if b:fortran_dialect == "F"
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
484 hi! def link fortranIntrinsicR fortranObsolete
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
485 hi! def link fortranUnitHeaderR fortranObsolete
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
486 hi! def link fortranTypeR fortranObsolete
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
487 hi! def link fortranStorageClassR fortranObsolete
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
488 hi! def link fortranOperatorR fortranObsolete
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
489 hi! def link fortranInclude fortranObsolete
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
490 hi! def link fortranLabelNumber fortranObsolete
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
491 hi! def link fortranTarget fortranObsolete
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
492 hi! def link fortranFloatIll fortranObsolete
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
493 hi! def link fortranIOR fortranObsolete
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
494 hi! def link fortranKeywordR fortranObsolete
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
495 hi! def link fortranStringR fortranObsolete
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
496 hi! def link fortranConditionalR fortranObsolete
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
497 else
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
498 hi! def link fortranIntrinsicR fortranIntrinsic
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
499 hi! def link fortranUnitHeaderR fortranPreCondit
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
500 hi! def link fortranTypeR fortranType
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
501 hi! def link fortranStorageClassR fortranStorageClass
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
502 hi! def link fortranOperatorR fortranOperator
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
503 hi! def link fortranInclude Include
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
504 hi! def link fortranLabelNumber Special
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
505 hi! def link fortranTarget Special
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
506 hi! def link fortranFloatIll fortranFloat
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
507 hi! def link fortranIOR fortranIO
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
508 hi! def link fortranKeywordR fortranKeyword
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
509 hi! def link fortranStringR fortranString
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
510 hi! def link fortranConditionalR fortranConditional
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
511 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
512
6530
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
513 " CUDA
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
514 hi def link fortranIntrinsicCUDA fortranIntrinsic
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
515 hi def link fortranTypeCUDA fortranType
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
516 hi def link fortranStringCUDA fortranString
435956324539 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3682
diff changeset
517
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
518 hi def link fortranFormatSpec Identifier
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
519 hi def link fortranFloat Float
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
520 hi def link fortranPreCondit PreCondit
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
521 hi def link cIncluded fortranString
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
522 hi def link cInclude Include
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
523 hi def link cPreProc PreProc
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
524 hi def link cPreCondit PreCondit
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 9975
diff changeset
525 hi def link fortranOpenMP PreProc
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
526 hi def link fortranParenError Error
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
527 hi def link fortranComment Comment
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
528 hi def link fortranSerialNumber Todo
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
529 hi def link fortranTab Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
530
3281
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
531 " Uncomment the next line if you use extra intrinsics provided by vendors
af1e8a1714c2 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3256
diff changeset
532 "hi def link fortranExtraIntrinsic Function
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
533
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
534 let b:current_syntax = "fortran"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
535
3237
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2377
diff changeset
536 let &cpo = s:cpo_save
91e53bcb7946 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2377
diff changeset
537 unlet s:cpo_save
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
538 " vim: ts=8 tw=132