=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/vgrind/Attic/vgrindefs.5,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- src/usr.bin/vgrind/Attic/vgrindefs.5 2010/01/03 14:31:01 1.14 +++ src/usr.bin/vgrind/Attic/vgrindefs.5 2010/09/19 21:30:05 1.15 @@ -1,4 +1,4 @@ -.\" $OpenBSD: vgrindefs.5,v 1.14 2010/01/03 14:31:01 schwarze Exp $ +.\" $OpenBSD: vgrindefs.5,v 1.15 2010/09/19 21:30:05 jmc Exp $ .\" $NetBSD: vgrindefs.5,v 1.3 1994/11/17 08:28:07 jtc Exp $ .\" .\" Copyright (c) 1989, 1991, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)vgrindefs.5 8.1 (Berkeley) 6/6/93 .\" -.Dd $Mdocdate: January 3 2010 $ +.Dd $Mdocdate: September 19 2010 $ .Dt VGRINDEFS 5 .Os .Sh NAME @@ -65,39 +65,6 @@ .It "oc bool present means upper and lower case are equivalent" .It "kw str a list of keywords separated by spaces" .El -.Sh EXAMPLES -The following entry, which describes the C language, is -typical of a language entry: -.Bd -literal -C|c:\ -:pb=^\ed?*?\ed?\ep\ed?\e(\ea?\e):bb={:be=}:cb=/*:ce=*/:sb=":se=\ee":\e -:lb=':le=\ee':tl:\e -:kw=asm auto break case char continue default do double else enum\e -extern float for fortran goto if int long register return short\e -sizeof static struct switch typedef union unsigned while #define\e -#else #endif #if #ifdef #ifndef #include #undef # define else endif\e -if ifdef ifndef include undef: -.Ed -.Pp -Note that the first field is just the language name (and any variants -of it). -Thus the C language could be specified to -.Xr vgrind 1 -as -.Qq c -or -.Qq C . -.Pp -Entries may continue onto multiple lines by giving a \e as the last -character of a line. -Capabilities in -.Nm vgrindefs -are of two types: -Boolean capabilities which indicate that the language has -some particular feature -and string -capabilities which give a regular expression or -keyword list. .Sh REGULAR EXPRESSIONS .Nm vgrindefs uses regular expressions which are very similar to those of @@ -166,6 +133,39 @@ .It Pa /usr/share/misc/vgrindefs file containing terminal descriptions .El +.Sh EXAMPLES +The following entry, which describes the C language, is +typical of a language entry: +.Bd -literal +C|c:\ +:pb=^\ed?*?\ed?\ep\ed?\e(\ea?\e):bb={:be=}:cb=/*:ce=*/:sb=":se=\ee":\e +:lb=':le=\ee':tl:\e +:kw=asm auto break case char continue default do double else enum\e +extern float for fortran goto if int long register return short\e +sizeof static struct switch typedef union unsigned while #define\e +#else #endif #if #ifdef #ifndef #include #undef # define else endif\e +if ifdef ifndef include undef: +.Ed +.Pp +Note that the first field is just the language name (and any variants +of it). +Thus the C language could be specified to +.Xr vgrind 1 +as +.Qq c +or +.Qq C . +.Pp +Entries may continue onto multiple lines by giving a \e as the last +character of a line. +Capabilities in +.Nm vgrindefs +are of two types: +Boolean capabilities which indicate that the language has +some particular feature +and string +capabilities which give a regular expression or +keyword list. .Sh SEE ALSO .Xr troff 1 , .Xr vgrind 1