Added some helper functions that may be used both in ctags and etags
parent
ca781ea739
commit
6c5e73898f
|
@ -9,13 +9,22 @@ io.encodings.ascii math.parser vocabs definitions
|
||||||
namespaces words sorting ;
|
namespaces words sorting ;
|
||||||
IN: ctags
|
IN: ctags
|
||||||
|
|
||||||
|
: ctag-word ( ctag -- word )
|
||||||
|
first ;
|
||||||
|
|
||||||
|
: ctag-path ( ctag -- path )
|
||||||
|
second first ;
|
||||||
|
|
||||||
|
: ctag-lineno ( ctag -- n )
|
||||||
|
second second ;
|
||||||
|
|
||||||
: ctag ( seq -- str )
|
: ctag ( seq -- str )
|
||||||
[
|
[
|
||||||
dup first ?word-name %
|
dup ctag-word ?word-name %
|
||||||
"\t" %
|
"\t" %
|
||||||
second dup first normalize-path %
|
dup ctag-path normalize-path %
|
||||||
"\t" %
|
"\t" %
|
||||||
second number>string %
|
ctag-lineno number>string %
|
||||||
] "" make ;
|
] "" make ;
|
||||||
|
|
||||||
: ctag-strings ( seq1 -- seq2 )
|
: ctag-strings ( seq1 -- seq2 )
|
||||||
|
|
Loading…
Reference in New Issue