View | Details | Raw Unified | Return to bug 143090 | Differences between
and this patch

Collapse All | Expand All

(-)usr.bin/indent/indent.c (+10 lines)
Lines 990-995 Link Here
990
	    ps.want_blank = true;
990
	    ps.want_blank = true;
991
	    break;
991
	    break;
992
992
993
	case strpfx:
994
	    if (ps.want_blank)
995
		*e_code++ = ' ';
996
	    for (t_ptr = token; *t_ptr; ++t_ptr) {
997
		CHECK_SIZE_CODE;
998
		*e_code++ = *t_ptr;
999
	    }
1000
	    ps.want_blank = false;
1001
	    break;
1002
993
	case period:		/* treat a period kind of like a binary
1003
	case period:		/* treat a period kind of like a binary
994
				 * operation */
1004
				 * operation */
995
	    *e_code++ = '.';	/* move the period into line */
1005
	    *e_code++ = '.';	/* move the period into line */
(-)usr.bin/indent/indent_codes.h (+1 lines)
Lines 68-70 Link Here
68
#define ifhead		30
68
#define ifhead		30
69
#define elsehead	31
69
#define elsehead	31
70
#define period		32
70
#define period		32
71
#define strpfx		33
(-)usr.bin/indent/lexi.c (+5 lines)
Lines 237-242 Link Here
237
		    fill_buffer();
237
		    fill_buffer();
238
	    }
238
	    }
239
	*e_token++ = '\0';
239
	*e_token++ = '\0';
240
241
	if (s_token[0] == 'L' && s_token[1] == '\0' &&
242
	      (*buf_ptr == '"' || *buf_ptr == '\''))
243
	    return (strpfx);
244
240
	while (*buf_ptr == ' ' || *buf_ptr == '\t') {	/* get rid of blanks */
245
	while (*buf_ptr == ' ' || *buf_ptr == '\t') {	/* get rid of blanks */
241
	    if (++buf_ptr >= buf_end)
246
	    if (++buf_ptr >= buf_end)
242
		fill_buffer();
247
		fill_buffer();

Return to bug 143090