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