Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
parser-quantum-espresso
Commits
e5466011
Commit
e5466011
authored
Sep 16, 2016
by
Henning Glawe
Browse files
use bright-green instead of yellow to denote namelist group open/close
parent
db458ca5
Changes
1
Hide whitespace changes
Inline
Side-by-side
parser/parser-quantum-espresso/FortranNamelistParser.py
View file @
e5466011
...
...
@@ -121,7 +121,7 @@ class FortranNamelistParser(object):
m
=
cRE_start_group
.
match
(
line
,
last_end
)
if
m
is
not
None
:
self
.
nl_group
=
m
.
group
(
1
)
sys
.
stdout
.
write
(
ANSI
.
FG_BRIGHT_
YELLOW
+
m
.
group
()
+
ANSI
.
RESET
)
sys
.
stdout
.
write
(
ANSI
.
FG_BRIGHT_
GREEN
+
m
.
group
()
+
ANSI
.
RESET
)
last_end
=
m
.
end
()
self
.
state
=
1
self
.
onOpen_namelist_group
(
m
.
group
(
1
))
...
...
@@ -179,7 +179,7 @@ class FortranNamelistParser(object):
self
.
nvalues_after_comma
=
0
self
.
onClose_namelist_group
(
self
.
nl_group
)
self
.
nl_group
=
None
sys
.
stdout
.
write
(
ANSI
.
BEGIN_INVERT
+
ANSI
.
FG_BRIGHT_
YELLOW
+
m
.
group
()
+
ANSI
.
RESET
)
sys
.
stdout
.
write
(
ANSI
.
BEGIN_INVERT
+
ANSI
.
FG_BRIGHT_
GREEN
+
m
.
group
()
+
ANSI
.
RESET
)
self
.
state
=
0
last_end
=
m
.
end
()
continue
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment