We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 085092c commit b34363dCopy full SHA for b34363d
fortls/regex_patterns.py
@@ -110,7 +110,7 @@ class FortranRegularExpressions:
110
FREE_OPENMP: Pattern = compile(r"[ ]*!\$OMP", I)
111
FREE_FORMAT_TEST: Pattern = compile(r"[ ]{1,4}[a-z]", I)
112
# Preprocessor matching rules
113
- DEFINED: Pattern = compile(r"defined[ ]*\([ ]*([a-z_][a-z0-9_]*)[ ]*\)", I)
+ DEFINED: Pattern = compile(r"defined[ ]*\(?[ ]*([a-z_][a-z0-9_]*)[ ]*\)?", I)
114
PP_REGEX: Pattern = compile(r"#(if |ifdef|ifndef|else|elif|endif)")
115
PP_DEF: Pattern = compile(r"#(define|undef)[ ]*([\w]+)(\((\w+(,[ ]*)?)+\))?", I)
116
PP_DEF_TEST: Pattern = compile(r"(![ ]*)?defined[ ]*\([ ]*([a-z0-9_]*)[ ]*\)$", I)
0 commit comments