|
12 | 12 | from pathlib import Path
|
13 | 13 |
|
14 | 14 | # Local modules
|
15 |
| -from fortls.constants import FORTRAN_LITERAL |
16 |
| -from fortls.helper_functions import expand_name |
17 |
| -from fortls.intrinsics import ( |
18 |
| - get_intrinsic_keywords, |
19 |
| - load_intrinsics, |
20 |
| - set_lowercase_intrinsics, |
21 |
| -) |
22 |
| -from fortls.jsonrpc import path_from_uri, path_to_uri |
23 |
| -from fortls.objects import ( |
| 15 | +from fortls.constants import ( |
24 | 16 | CLASS_TYPE_ID,
|
| 17 | + FORTRAN_LITERAL, |
25 | 18 | FUNCTION_TYPE_ID,
|
26 | 19 | INTERFACE_TYPE_ID,
|
27 | 20 | METH_TYPE_ID,
|
28 | 21 | MODULE_TYPE_ID,
|
29 | 22 | SELECT_TYPE_ID,
|
30 | 23 | SUBROUTINE_TYPE_ID,
|
31 | 24 | VAR_TYPE_ID,
|
| 25 | +) |
| 26 | +from fortls.helper_functions import expand_name |
| 27 | +from fortls.intrinsics import ( |
| 28 | + get_intrinsic_keywords, |
| 29 | + load_intrinsics, |
| 30 | + set_lowercase_intrinsics, |
| 31 | +) |
| 32 | +from fortls.jsonrpc import path_from_uri, path_to_uri |
| 33 | +from fortls.objects import ( |
32 | 34 | climb_type_tree,
|
33 | 35 | find_in_scope,
|
34 | 36 | find_in_workspace,
|
|
42 | 44 | from fortls.parse_fortran import fortran_file, get_line_context, process_file
|
43 | 45 | from fortls.regex_patterns import (
|
44 | 46 | DQ_STRING_REGEX,
|
| 47 | + INT_STMNT_REGEX, |
45 | 48 | LOGICAL_REGEX,
|
46 | 49 | NUMBER_REGEX,
|
47 | 50 | SQ_STRING_REGEX,
|
|
50 | 53 | log = logging.getLogger(__name__)
|
51 | 54 | # Global regexes
|
52 | 55 | FORTRAN_EXT_REGEX = re.compile(r"\.F(77|90|95|03|08|OR|PP)?$", re.I)
|
53 |
| -# TODO: I think this can be replaced by fortls.regex_patterns |
54 |
| -INT_STMNT_REGEX = re.compile(r"^[ ]*[a-z]*$", re.I) |
55 | 56 | # TODO: I think this can be replaced by fortls.regex_patterns type & class
|
56 | 57 | TYPE_DEF_REGEX = re.compile(r"[ ]*(TYPE|CLASS)[ ]*\([a-z0-9_ ]*$", re.I)
|
57 | 58 | # TODO: I think this can be replaced by fortls.regex_patterns
|
|
0 commit comments