summaryrefslogtreecommitdiffstats
path: root/usr.bin/vgrind/vgrindefs.5
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-10-18 14:13:18 +0000
committerjoerg <joerg@FreeBSD.org>1996-10-18 14:13:18 +0000
commite9d8333cac1727cd103717773a1d431522322d3d (patch)
tree8ba07061eb7199f93227492816406dcd0da95945 /usr.bin/vgrind/vgrindefs.5
parent193247f80b8792ef4219660d8739d903d43bbd86 (diff)
downloadFreeBSD-src-e9d8333cac1727cd103717773a1d431522322d3d.zip
FreeBSD-src-e9d8333cac1727cd103717773a1d431522322d3d.tar.gz
Some cleanup:
. correct a typo in regexp.c, . implement a new "nc" (non-comment) feature to describe exceptions from the comment detection; there were problems in Perl with the $# operator that could not be solved by any other means, . prevent blocklevel from becoming negative (due to earlier misdetected sequences), this is probably a workaround for the problem described in PR # bin/1785, . update the Perl description to use the "nc" feature, . update the man page for the "nc" and the undocumented "ab"/"ae" features.
Diffstat (limited to 'usr.bin/vgrind/vgrindefs.5')
-rw-r--r--usr.bin/vgrind/vgrindefs.511
1 files changed, 11 insertions, 0 deletions
diff --git a/usr.bin/vgrind/vgrindefs.5 b/usr.bin/vgrind/vgrindefs.5
index 4ac7522..c2060a2 100644
--- a/usr.bin/vgrind/vgrindefs.5
+++ b/usr.bin/vgrind/vgrindefs.5
@@ -54,6 +54,8 @@ The following table names and describes each field.
.Pp
.Bl -column Namexxx Tpexxx
.Sy Name Type Description
+.It "ab str regular expression for the start of an alternate comment"
+.It "ae str regular expression for the end of an alternate comment"
.It "pb str regular expression for start of a procedure"
.It "bb str regular expression for start of a lexical block"
.It "be str regular expression for the end of a lexical block"
@@ -63,11 +65,20 @@ The following table names and describes each field.
.It "se str regular expression for the end of a string"
.It "lb str regular expression for the start of a character constant"
.It "le str regular expression for the end of a character constant"
+.It "nc str regular expression for a non-comment (see below)"
.It "tl bool present means procedures are only defined at the top lexical level"
.It "oc bool present means upper and lower case are equivalent"
.It "kw str a list of keywords separated by spaces"
.El
.Pp
+Non-comments are required to describe a certain context where a
+sequence that would normally start a comment loses its special
+meaning. A typical example for this can be found in Perl, where
+comments are normally starting with
+.Ql # ,
+while the string
+.Ql $#
+is an operator on an array.
.Sh EXAMPLES
The following entry, which describes the C language, is
typical of a language entry.
OpenPOWER on IntegriCloud