[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Help please (filetypes)

From: Jan Hudec
Subject: Re: [Gnu-arch-users] Help please (filetypes)
Date: Sat, 3 Jan 2004 10:47:59 +0100
User-agent: Mutt/1.5.4i

On Fri, Jan 02, 2004 at 13:03:46 +0100, Thomas Zander wrote:
> Hash: SHA1
> For my GUI I created a 'auto tag' feature.
> It will tag the file using a 'arch-tag:' automatically based on filetype. 
> What 
> I would like to see is if you could give me more tag information then I 
> already have.
> For each file-extension there is a line where the 'ID' will be replaced with 
> a 
> generated ID.  The form being   ^\d*G\d+(.*)$
> Where the first number is the line number (empty for last), the second number 
> is the column.
> Example:   *.java = "G0// arch-tag: ID\n"
> Where G is the vi command to go to the last line and in columns 0 the rest of 
> the tag will be printed;
> Another example:
> *.sh = "1G0# arch-tag: ID\n"
> Where on the first line (1G in vi will bring you to the first line) and in 
> column 0 the '# arch-tag: bla
> '
> will be printed.
> Please take the time to send me lines like these for the obvious and not-so 
> obvious filetypes (.pl, .c, .h included) and where you normally put your 
> arch-tag info.

- Reasonable default should be with #, since many strange languages use
- Surely *.scm = "G0; arch-tag: ID\n" is an obvious type. *.sch and
  *.bgl are less common variants. *.el, *.cl and *.jl are different
  dialects with the same comment syntax.
- *.pm is an alias for *.pl, if we take *.pl to mean perl (some people
  use it for prolog!)
- The default handles Makefiles, automakefiles, perl *.xs, shell scripts
  etc. right. However, special care must be taken for the = "G0ifelse(\n# arch-tag: ID\n)\n" (yes, it is 3 lines).
  (the same should be for *.m4)
- Oh, *.l = "G0/* arch-id: ID */" and *.y should understand the same.
- You can't tag shell files on the first line, since #! magic usualy
  resides there and must not be touched.
- People use many strange things. In one program I am writing, there
  are *.c4 files. I recall someone talking about *.ui files on this
  list. Often the custom files are extension-less.
- Scripts are usualy extension-less, no matter in what language they

> Thank you!
> - -- 
> Thomas Zander
> Version: GnuPG v1.2.3 (GNU/Linux)
> iD8DBQE/9V4oCojCW6H2z/QRAqn/AKDyxo1J2EdCL2EpbZNCNOQN6WphsACfdydQ
> omoCYUY570VRQ77BstyxE9A=
> =V+Iq
> _______________________________________________
> Gnu-arch-users mailing list
> address@hidden
> GNU arch home page:
                                                 Jan 'Bulb' Hudec 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]