@@ -84,7 +84,9 @@ source_dirs
84
84
85
85
.. code-block :: json
86
86
87
- "source_dirs" : [" ./**" , " /external/fortran/src" ]
87
+ {
88
+ "source_dirs" : [" ./**" , " /external/fortran/src" ]
89
+ }
88
90
89
91
By default all directories under the current project will be recursively parsed
90
92
for Fortran sources. Alternatively, one can define a series of directories
@@ -97,7 +99,9 @@ incl_suffixes
97
99
98
100
.. code-block :: json
99
101
100
- "incl_suffixes" : [" .h" , " .FYP" ]
102
+ {
103
+ "incl_suffixes" : [" .h" , " .FYP" ]
104
+ }
101
105
102
106
``fortls `` will parse only files with ``incl_suffixes `` extensions found in
103
107
``source_dirs ``. By default ``incl_suffixes `` are defined as
@@ -112,7 +116,9 @@ excl_suffixes
112
116
113
117
.. code-block :: json
114
118
115
- "excl_suffixes" : [" _tmp.f90" , " _hdf5.F90" ]
119
+ {
120
+ "excl_suffixes" : [" _tmp.f90" , " _hdf5.F90" ]
121
+ }
116
122
117
123
If certain files or suffixes do not need to be parsed these can be excluded by
118
124
deffining ``excl_suffixes ``
@@ -130,8 +136,9 @@ its subdirectories from being parsed you should define it like so
130
136
131
137
.. code-block :: json
132
138
133
- "excl_paths" : [" exclude_dir/**" ]
134
-
139
+ {
140
+ "excl_paths" : [" exclude_dir/**" ]
141
+ }
135
142
136
143
Preprocessor
137
144
############
@@ -141,7 +148,9 @@ pp_suffixes
141
148
142
149
.. code-block :: json
143
150
144
- "pp_suffixes" : [" .h" , " .F90" , " .fpp" ]
151
+ {
152
+ "pp_suffixes" : [" .h" , " .F90" , " .fpp" ]
153
+ }
145
154
146
155
By default preprocessor definitions are parsed for all Fortran source files
147
156
with uppercase extensions e.g. ``.F90 ``, ``.F ``, ``.F08 ``, etc.. However, the
@@ -153,7 +162,9 @@ include_dirs
153
162
154
163
.. code-block :: json
155
164
156
- "include_dirs" : [" include" , " preprocessor" , " /usr/include" ]
165
+ {
166
+ "include_dirs" : [" include" , " preprocessor" , " /usr/include" ]
167
+ }
157
168
158
169
By default ``fortls `` will scan the project's directories for files with extensions
159
170
``PP_SUFFIXES `` to parse for **preprocessor definitions **. However, if the preprocessor
@@ -169,9 +180,11 @@ pp_defs
169
180
170
181
.. code-block :: json
171
182
172
- "pp_defs" : {
173
- "HAVE_PETSC" : " "
174
- "Mat" : " type(tMat)"
183
+ {
184
+ "pp_defs" : {
185
+ "HAVE_PETSC" : " "
186
+ "Mat" : " type(tMat)"
187
+ }
175
188
}
176
189
177
190
Additional **preprocessor definitions ** from what are specified in files found in
0 commit comments