mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-11-09 07:33:43 +01:00
Add tags for vi navigation
This commit is contained in:
parent
a7bffaffcc
commit
b1982206ea
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
from variable import Variable
|
from variable import Variable
|
||||||
from variables import variables
|
from variables import variables
|
||||||
|
from subroutines import subroutines
|
||||||
from irpf90_t import *
|
from irpf90_t import *
|
||||||
from util import *
|
from util import *
|
||||||
|
|
||||||
@ -103,11 +104,23 @@ def run():
|
|||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
if os.fork() == 0:
|
if os.fork() == 0:
|
||||||
|
tags = []
|
||||||
l = variables.keys()
|
l = variables.keys()
|
||||||
file = open("irpf90_entities","w")
|
file = open("irpf90_entities","w")
|
||||||
l.sort()
|
l.sort()
|
||||||
for v in l:
|
for v in l:
|
||||||
do_print_short(file,variables[v])
|
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()
|
file.close()
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
version = "1.3.3"
|
version = "1.3.4"
|
||||||
|
Loading…
Reference in New Issue
Block a user