10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-12-21 11:53:32 +01:00

Add tags for vi navigation

This commit is contained in:
Anthony Scemama 2014-03-11 15:43:02 +01:00
parent a7bffaffcc
commit b1982206ea
2 changed files with 14 additions and 1 deletions

View File

@ -27,6 +27,7 @@
from variable import Variable
from variables import variables
from subroutines import subroutines
from irpf90_t import *
from util import *
@ -103,11 +104,23 @@ def run():
sys.exit(0)
if os.fork() == 0:
tags = []
l = variables.keys()
file = open("irpf90_entities","w")
l.sort()
for v in l:
do_print_short(file,variables[v])
line = variables[v].line
tags.append( '%s\t%s\t/%s/;"\n'%(v,line.filename[0],line.text.split('!')[0].strip()) )
file.close()
l = subroutines.keys()
for v in l:
line = subroutines[v].line
tags.append('%s\t%s\t/%s/;"\n'%(v,line.filename,line.text.split('!')[0].strip()))
tags.sort()
file = open("tags","w")
for line in tags:
file.write(line)
file.close()
sys.exit(0)

View File

@ -1 +1 @@
version = "1.3.3"
version = "1.3.4"