Skip to content
Snippets Groups Projects
Commit e5466011 authored by Henning Glawe's avatar Henning Glawe
Browse files

use bright-green instead of yellow to denote namelist group open/close

parent db458ca5
No related branches found
No related tags found
No related merge requests found
...@@ -121,7 +121,7 @@ class FortranNamelistParser(object): ...@@ -121,7 +121,7 @@ class FortranNamelistParser(object):
m = cRE_start_group.match(line, last_end) m = cRE_start_group.match(line, last_end)
if m is not None: if m is not None:
self.nl_group = m.group(1) 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() last_end = m.end()
self.state = 1 self.state = 1
self.onOpen_namelist_group(m.group(1)) self.onOpen_namelist_group(m.group(1))
...@@ -179,7 +179,7 @@ class FortranNamelistParser(object): ...@@ -179,7 +179,7 @@ class FortranNamelistParser(object):
self.nvalues_after_comma = 0 self.nvalues_after_comma = 0
self.onClose_namelist_group(self.nl_group) self.onClose_namelist_group(self.nl_group)
self.nl_group = None 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 self.state = 0
last_end = m.end() last_end = m.end()
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment