vgrindefs.5 (557b7fa1488f8937156051e061ac3512330bcb7e) vgrindefs.5 (6c7216df785592bb069469113f556dfd1946ed5d)
1.\" Copyright (c) 1989, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 67 unchanged lines hidden (view full) ---

76sequence that would normally start a comment loses its special
77meaning.
78A typical example for this can be found in Perl, where
79comments are normally starting with
80.Ql # ,
81while the string
82.Ql $#
83is an operator on an array.
1.\" Copyright (c) 1989, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 67 unchanged lines hidden (view full) ---

76sequence that would normally start a comment loses its special
77meaning.
78A typical example for this can be found in Perl, where
79comments are normally starting with
80.Ql # ,
81while the string
82.Ql $#
83is an operator on an array.
84.Sh EXAMPLES
85The following entry, which describes the C language, is
86typical of a language entry.
87.Bd -literal
88C|c:\
89:pb=^\ed?*?\ed?\ep\ed?\e(\ea?\e):bb={:be=}:cb=/*:ce=*/:sb=":se=\ee":\e
90:lb=':le=\ee':tl:\e
91:kw=asm auto break case char continue default do double else enum\e
92extern float for fortran goto if int long register return short\e
93sizeof static struct switch typedef union unsigned while #define\e
94#else #endif #if #ifdef #ifndef #include #undef # define else endif\e
95if ifdef ifndef include undef:
96.Ed
97.Pp
98Note that the first field is just the language name (and any variants
99of it).
100Thus the C language could be specified to
101.Xr vgrind 1
102as "c" or "C".
103.Pp
104Entries may continue onto multiple lines by giving a \e as the last
105character of a line.
106Capabilities in
107.Nm
108are of two types:
109Boolean capabilities which indicate that the language has
110some particular feature
111and string
112capabilities which give a regular expression or
113keyword list.
114.Sh REGULAR EXPRESSIONS
115.Nm Vgrindefs
116uses regular expression which are very similar to those of
117.Xr ex 1
118and
119.Xr lex 1 .
120The characters `^', `$', `:' and `\e'
121are reserved characters and must be

--- 38 unchanged lines hidden (view full) ---

160If the "oc" boolean is specified, indicating that upper
161and lower case are equivalent, then all the keywords should be
162specified in lower case.
163.Sh FILES
164.Bl -tag -width /usr/share/misc/vgrindefs -compact
165.It Pa /usr/share/misc/vgrindefs
166File containing terminal descriptions.
167.El
84.Sh REGULAR EXPRESSIONS
85.Nm Vgrindefs
86uses regular expression which are very similar to those of
87.Xr ex 1
88and
89.Xr lex 1 .
90The characters `^', `$', `:' and `\e'
91are reserved characters and must be

--- 38 unchanged lines hidden (view full) ---

130If the "oc" boolean is specified, indicating that upper
131and lower case are equivalent, then all the keywords should be
132specified in lower case.
133.Sh FILES
134.Bl -tag -width /usr/share/misc/vgrindefs -compact
135.It Pa /usr/share/misc/vgrindefs
136File containing terminal descriptions.
137.El
138.Sh EXAMPLES
139The following entry, which describes the C language, is
140typical of a language entry.
141.Bd -literal
142C|c:\
143:pb=^\ed?*?\ed?\ep\ed?\e(\ea?\e):bb={:be=}:cb=/*:ce=*/:sb=":se=\ee":\e
144:lb=':le=\ee':tl:\e
145:kw=asm auto break case char continue default do double else enum\e
146extern float for fortran goto if int long register return short\e
147sizeof static struct switch typedef union unsigned while #define\e
148#else #endif #if #ifdef #ifndef #include #undef # define else endif\e
149if ifdef ifndef include undef:
150.Ed
151.Pp
152Note that the first field is just the language name (and any variants
153of it).
154Thus the C language could be specified to
155.Xr vgrind 1
156as "c" or "C".
157.Pp
158Entries may continue onto multiple lines by giving a \e as the last
159character of a line.
160Capabilities in
161.Nm
162are of two types:
163Boolean capabilities which indicate that the language has
164some particular feature
165and string
166capabilities which give a regular expression or
167keyword list.
168.Sh SEE ALSO
169.Xr troff 1 ,
170.Xr vgrind 1
171.Sh HISTORY
172The
173.Nm
174file format appeared in
175.Bx 4.2 .
168.Sh SEE ALSO
169.Xr troff 1 ,
170.Xr vgrind 1
171.Sh HISTORY
172The
173.Nm
174file format appeared in
175.Bx 4.2 .