[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-indent] C++ ability for indent .. code patch and question.
From: |
Carlo Wood |
Subject: |
Re: [Bug-indent] C++ ability for indent .. code patch and question. |
Date: |
Sat, 12 Jan 2002 15:20:40 +0100 |
User-agent: |
Mutt/1.2.5i |
On Sat, Jan 12, 2002 at 02:39:10AM -0500, Preston A. Elder wrote:
> a< b< c>>;
>
> I found the fix was to modify lexi.c, and insert the following code at
> line 1020 (ie. the detection code for the lexical token of '<', '>' and
> '!'):
> if (token - cur_line)
> if (token[-1] == ' ' || token[-1] == TAB)
> parser_state_tos->want_blank = true;
>
> This should force the parser to maintain a space before a <, > or !
> character if there was one there already. I cannot see any ill effect
std::cin >> s;
int i = j >> 4;
--
Carlo Wood <address@hidden>