[m-rev.] diff: hlds dump tabs

Zoltan Somogyi zs at cs.mu.OZ.AU
Fri Jan 14 16:59:48 AEDT 2005


compiler/hlds_out.m:
	Since HLDS dumps are deeply indented, set the default tab width for vim
	to a small value when viewing them.

Zoltan.

Index: hlds_out.m
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/compiler/hlds_out.m,v
retrieving revision 1.340
diff -u -r1.340 hlds_out.m
--- hlds_out.m	7 Jan 2005 02:31:16 -0000	1.340
+++ hlds_out.m	13 Jan 2005 10:34:36 -0000
@@ -793,6 +793,8 @@
 	is det.
 
 hlds_out__write_header(Indent, Module, !IO) :-
+	hlds_out__write_indent(Indent, !IO),
+	io__write_string("% vim: ts=2 sw=2\n\n", !IO),
 	module_info_name(Module, Name),
 	hlds_out__write_indent(Indent, !IO),
 	io__write_string(":- module ", !IO),
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list