| 1 |
(identifier) @variable |
| 2 |
(string_literal) @string |
| 3 |
(number_literal) @constant.numeric |
| 4 |
(boolean_literal) @constant.builtin.boolean |
| 5 |
(comment) @comment |
| 6 |
|
| 7 |
[ |
| 8 |
(intrinsic_type) |
| 9 |
"allocatable" |
| 10 |
"attributes" |
| 11 |
"device" |
| 12 |
"dimension" |
| 13 |
"endtype" |
| 14 |
"global" |
| 15 |
"grid_global" |
| 16 |
"host" |
| 17 |
"import" |
| 18 |
"in" |
| 19 |
"inout" |
| 20 |
"intent" |
| 21 |
"optional" |
| 22 |
"out" |
| 23 |
"pointer" |
| 24 |
"type" |
| 25 |
"value" |
| 26 |
] @keyword.storage.modifier |
| 27 |
|
| 28 |
[ |
| 29 |
"contains" |
| 30 |
"private" |
| 31 |
"public" |
| 32 |
] @keyword.directive |
| 33 |
|
| 34 |
[ |
| 35 |
(none) |
| 36 |
"implicit" |
| 37 |
] @attribute |
| 38 |
|
| 39 |
[ |
| 40 |
"endfunction" |
| 41 |
"endprogram" |
| 42 |
"endsubroutine" |
| 43 |
"function" |
| 44 |
"procedure" |
| 45 |
"subroutine" |
| 46 |
] @keyword.function |
| 47 |
|
| 48 |
[ |
| 49 |
(default) |
| 50 |
(procedure_qualifier) |
| 51 |
"abstract" |
| 52 |
"bind" |
| 53 |
"call" |
| 54 |
"class" |
| 55 |
"continue" |
| 56 |
"cycle" |
| 57 |
"end" |
| 58 |
"endenum" |
| 59 |
"endinterface" |
| 60 |
"endmodule" |
| 61 |
"endprocedure" |
| 62 |
"endprogram" |
| 63 |
"endsubmodule" |
| 64 |
"enum" |
| 65 |
"enumerator" |
| 66 |
"equivalence" |
| 67 |
"exit" |
| 68 |
"extends" |
| 69 |
"format" |
| 70 |
"goto" |
| 71 |
"include" |
| 72 |
"interface" |
| 73 |
"intrinsic" |
| 74 |
"non_intrinsic" |
| 75 |
"module" |
| 76 |
"namelist" |
| 77 |
"only" |
| 78 |
"parameter" |
| 79 |
"print" |
| 80 |
"procedure" |
| 81 |
"program" |
| 82 |
"read" |
| 83 |
"stop" |
| 84 |
"submodule" |
| 85 |
"use" |
| 86 |
"write" |
| 87 |
] @keyword |
| 88 |
|
| 89 |
"return" @keyword.control.return |
| 90 |
|
| 91 |
[ |
| 92 |
"else" |
| 93 |
"elseif" |
| 94 |
"elsewhere" |
| 95 |
"endif" |
| 96 |
"endwhere" |
| 97 |
"if" |
| 98 |
"then" |
| 99 |
"where" |
| 100 |
] @keyword.control.conditional |
| 101 |
|
| 102 |
[ |
| 103 |
"do" |
| 104 |
"enddo" |
| 105 |
"forall" |
| 106 |
"while" |
| 107 |
] @keyword.control.repeat |
| 108 |
|
| 109 |
[ |
| 110 |
"*" |
| 111 |
"+" |
| 112 |
"-" |
| 113 |
"/" |
| 114 |
"=" |
| 115 |
"<" |
| 116 |
">" |
| 117 |
"<=" |
| 118 |
">=" |
| 119 |
"==" |
| 120 |
"/=" |
| 121 |
] @operator |
| 122 |
|
| 123 |
[ |
| 124 |
"\\.and\\." |
| 125 |
"\\.or\\." |
| 126 |
"\\.lt\\." |
| 127 |
"\\.gt\\." |
| 128 |
"\\.ge\\." |
| 129 |
"\\.le\\." |
| 130 |
"\\.eq\\." |
| 131 |
"\\.eqv\\." |
| 132 |
"\\.neqv\\." |
| 133 |
] @keyword.operator |
| 134 |
|
| 135 |
|
| 136 |
[ |
| 137 |
"(" |
| 138 |
")" |
| 139 |
"[" |
| 140 |
"]" |
| 141 |
"<<<" |
| 142 |
">>>" |
| 143 |
] @punctuation.bracket |
| 144 |
|
| 145 |
|
| 146 |
[ |
| 147 |
"::" |
| 148 |
"," |
| 149 |
"%" |
| 150 |
] @punctuation.delimiter |
| 151 |
|
| 152 |
[ |
| 153 |
"defined" |
| 154 |
"#define" |
| 155 |
"#elif" |
| 156 |
"#else" |
| 157 |
"#endif" |
| 158 |
"#if" |
| 159 |
"#ifdef" |
| 160 |
"#ifndef" |
| 161 |
"#include" |
| 162 |
(preproc_directive) |
| 163 |
] @keyword.directive |
| 164 |
|
| 165 |
(parameters |
| 166 |
(identifier) @variable.parameter) |
| 167 |
|
| 168 |
(program_statement |
| 169 |
(name) @namespace) |
| 170 |
|
| 171 |
(module_statement |
| 172 |
(name) @namespace) |
| 173 |
|
| 174 |
(submodule_statement |
| 175 |
(module_name) (name) @namespace) |
| 176 |
|
| 177 |
(function_statement |
| 178 |
(name) @function) |
| 179 |
|
| 180 |
(subroutine_statement |
| 181 |
(name) @function) |
| 182 |
|
| 183 |
(module_procedure_statement |
| 184 |
(name) @function) |
| 185 |
|
| 186 |
(end_program_statement |
| 187 |
(name) @namespace) |
| 188 |
|
| 189 |
(end_module_statement |
| 190 |
(name) @namespace) |
| 191 |
|
| 192 |
(end_submodule_statement |
| 193 |
(name) @namespace) |
| 194 |
|
| 195 |
(end_function_statement |
| 196 |
(name) @function) |
| 197 |
|
| 198 |
(end_subroutine_statement |
| 199 |
(name) @function) |
| 200 |
|
| 201 |
(end_module_procedure_statement |
| 202 |
(name) @function) |
| 203 |
|
| 204 |
(subroutine_call |
| 205 |
(identifier) @function) |
| 206 |
|
| 207 |
(keyword_argument |
| 208 |
name: (identifier) @keyword) |
| 209 |
|
| 210 |
(derived_type_member_expression |
| 211 |
(type_member) @variable.other.member) |
| 212 |
|
| 213 |
(call_expression |
| 214 |
(identifier) @function) |