summaryrefslogtreecommitdiffstats
path: root/usr.bin/vgrind
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-10-15 18:58:45 +0000
committerjoerg <joerg@FreeBSD.org>1996-10-15 18:58:45 +0000
commit901db635de07cb72ef8cd5a40920e3d30b797d3e (patch)
tree3db8881a857a8518de2c9b4f300bd379b2a470f4 /usr.bin/vgrind
parent5beb18abc1bf4877517b42f429521cb88ccb29e3 (diff)
downloadFreeBSD-src-901db635de07cb72ef8cd5a40920e3d30b797d3e.zip
FreeBSD-src-901db635de07cb72ef8cd5a40920e3d30b797d3e.tar.gz
Wow!, i finally found a usable vgrind definition for Perl.
Diffstat (limited to 'usr.bin/vgrind')
-rw-r--r--usr.bin/vgrind/vgrind.16
-rw-r--r--usr.bin/vgrind/vgrindefs.src11
2 files changed, 15 insertions, 2 deletions
diff --git a/usr.bin/vgrind/vgrind.1 b/usr.bin/vgrind/vgrind.1
index 352ba7e..50f52e8 100644
--- a/usr.bin/vgrind/vgrind.1
+++ b/usr.bin/vgrind/vgrind.1
@@ -137,9 +137,11 @@ or the default),
.Pq Fl l Ns Ar yacc ,
.Tn LISP
.Pq Fl l Ns Ar isp ,
-and
.Tn ICON
-.Pq Fl l Ns Ar I .
+.Pq Fl l Ns Ar I ,
+and
+.Tn PERL
+.Pq Fl l Ns Ar perl .
.It Fl n
forces no keyword bolding
.It Fl p Ar postproc
diff --git a/usr.bin/vgrind/vgrindefs.src b/usr.bin/vgrind/vgrindefs.src
index 91ef58f..becf773 100644
--- a/usr.bin/vgrind/vgrindefs.src
+++ b/usr.bin/vgrind/vgrindefs.src
@@ -144,3 +144,14 @@ C++|c++:\
ifdef ifndef include undef defined\
class const delete friend inline new operator overload private\
protected public virtual:
+#
+# Hack alert: defining function calls as `alternate comments' (ab/ae) seems
+# to be the only way to avoid major confusion inside vfontedpr for calls like:
+# &packagename'function;
+#
+Perl|perl|pl:\
+ :pb=sub\d\p\d:bb={:be=}:cb=#:ce=$:tl:\
+ :ab=&:ae=(;|\d|,):\
+ :sb=":se=(\e"|$):lb=':le=(\e'|$):\
+ :kw=do if unless while until else elsif for foreach continue\
+ next redo sub last goto return die exit require:
OpenPOWER on IntegriCloud