version 1.14, 2010/01/03 14:31:01 |
version 1.15, 2010/09/19 21:30:05 |
|
|
.It "oc bool present means upper and lower case are equivalent" |
.It "oc bool present means upper and lower case are equivalent" |
.It "kw str a list of keywords separated by spaces" |
.It "kw str a list of keywords separated by spaces" |
.El |
.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 |
.Sh REGULAR EXPRESSIONS |
.Nm vgrindefs |
.Nm vgrindefs |
uses regular expressions which are very similar to those of |
uses regular expressions which are very similar to those of |
|
|
.It Pa /usr/share/misc/vgrindefs |
.It Pa /usr/share/misc/vgrindefs |
file containing terminal descriptions |
file containing terminal descriptions |
.El |
.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 |
.Sh SEE ALSO |
.Xr troff 1 , |
.Xr troff 1 , |
.Xr vgrind 1 |
.Xr vgrind 1 |