Skip to content

Commit 2801d29

Browse files
committed
Updates keyword statements from Intel OneAPI
1 parent 41fa5dd commit 2801d29

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

fortls/intrinsics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def add_children(json_obj, fort_obj):
137137
add_children(child, child_obj)
138138

139139
# Fortran statments taken from Intel Fortran documentation
140-
# (https://software.intel.com/en-us/fortran-compiler-18.0-developer-guide)
140+
# (https://www.intel.com/content/www/us/en/develop/documentation/fortran-compiler-oneapi-dev-guide-and-reference/top/language-reference/a-to-z-reference)
141141
json_file = os.path.join(
142142
os.path.dirname(os.path.abspath(__file__)), "statements.json"
143143
)
@@ -148,7 +148,7 @@ def add_children(json_obj, fort_obj):
148148
for name, json_obj in sorted(intrin_file[key].items()):
149149
statements[key].append(create_int_object(name, json_obj, 15))
150150
# Fortran keywords taken from Intel Fortran documentation
151-
# (https://software.intel.com/en-us/fortran-compiler-18.0-developer-guide)
151+
# (https://www.intel.com/content/www/us/en/develop/documentation/fortran-compiler-oneapi-dev-guide-and-reference/top/language-reference/a-to-z-reference)
152152
json_file = os.path.join(
153153
os.path.dirname(os.path.abspath(__file__)), "keywords.json"
154154
)

fortls/keywords.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"var_def": {
33
"ALLOCATABLE": {
4-
"doc": "Specify that an array is an allocatable array with a deferred shape."
4+
"doc": "Specifies that an object is allocatable."
55
},
66
"ASYNCHRONOUS": {
7-
"doc": "Specify that a variable can be used for asynchronous input and output."
7+
"doc": "Specifies that a variable can be used for asynchronous input and output."
88
},
99
"BIND": {
1010
"doc": "Specifies that an object is interoperable with C and has external linkage."
@@ -13,62 +13,62 @@
1313
"doc": "Specifies that an entity is a coarray, and specifies its corank and cobounds, if any."
1414
},
1515
"CONTIGUOUS": {
16-
"doc": "Specify that the target of a pointer or an assumed-sized array is contiguous."
16+
"doc": "Specifies that the target of a pointer or an assumed-sized array is contiguous."
1717
},
1818
"DIMENSION(:)": {
19-
"doc": "Specify that an object is an array, and defines the shape of the array."
19+
"doc": "Specifies that an object is an array, and defines the shape of the array."
2020
},
2121
"EXTERNAL": {
22-
"doc": "Allows an external procedure, a dummy procedure, a procedure pointer, or a block data subprogram to be used as an actual argument. (To specify intrinsic procedures as actual arguments, use the INTRINSIC attribute.)"
22+
"doc": "Allows an external procedure, a dummy procedure, a procedure pointer, or a block data subprogram to be used as an actual argument."
2323
},
2424
"INTRINSIC": {
2525
"doc": "Allows the specific name of an intrinsic procedure to be used as an actual argument."
2626
},
2727
"POINTER": {
28-
"doc": "Specify that an object or a procedure is a pointer (a dynamic variable)."
28+
"doc": "Specifies that an object or a procedure is a pointer (a dynamic variable)."
2929
},
3030
"PROTECTED": {
3131
"doc": "Specifies limitations on the use of module entities."
3232
},
3333
"TARGET": {
34-
"doc": "Specify that an object can become the target of a pointer."
34+
"doc": "Specifies that an object can become the target of a pointer (it can be pointed to)."
3535
},
3636
"VOLATILE": {
3737
"doc": "Specifies that the value of an object is entirely unpredictable, based on information local to the current program unit. It prevents objects from being optimized during compilation."
3838
}
3939
},
4040
"arg": {
4141
"INTENT(IN)": {
42-
"doc": "Specify the intended use of one or more dummy arguments."
42+
"doc": "Specifies that the dummy argument will be used only to provide data to the procedure."
4343
},
4444
"INTENT(OUT)": {
45-
"doc": "Specify the intended use of one or more dummy arguments."
45+
"doc": "Specifies that the dummy argument will be used to pass data from the procedure back to the calling program."
4646
},
4747
"INTENT(INOUT)": {
48-
"doc": "Specify the intended use of one or more dummy arguments."
48+
"doc": "Specifies that the dummy argument can both provide data to the procedure and return data to the calling program."
4949
},
5050
"OPTIONAL": {
51-
"doc": "Allow dummy arguments to be omitted in a procedure reference."
51+
"doc": "Permits dummy arguments to be omitted in a procedure reference."
5252
},
5353
"SAVE": {
54-
"doc": "Cause the values and definition of objects to be retained after execution of a RETURN or END statement in a subprogram."
54+
"doc": "Causes the values and definition of objects to be retained after execution of a RETURN or END statement in a subprogram."
5555
},
5656
"VALUE": {
5757
"doc": "Specifies a type of argument association for a dummy argument."
5858
}
5959
},
6060
"type_mem": {
6161
"DEFERRED": {
62-
"doc": "Indicate that the procedure is deferred. Deferred bindings must only be specified for derived-type definitions with the ABSTRACT attribute."
62+
"doc": "Indicates that the procedure is deferred. Deferred bindings must only be specified for derived-type definitions with the ABSTRACT attribute."
6363
},
6464
"NON_OVERRIDABLE": {
65-
"doc": "Determine whether a binding can be overridden in an extended type."
65+
"doc": "Determines whether a binding can be overridden in an extended type. You must not specify NON_OVERRIDABLE for a binding with the DEFERRED attribute."
6666
},
6767
"NOPASS": {
6868
"doc": "Indicate that the procedure has no passed-object dummy argument."
6969
},
7070
"PASS": {
71-
"doc": "Define the 'passed-object dummy argument' of the procedure.",
71+
"doc": "Indicates that the procedure has no passed-object dummy argument.",
7272
"args": "arg_name"
7373
}
7474
},

0 commit comments

Comments
 (0)