bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a part of code becames a part of a comment


From: e.zhiganov
Subject: a part of code becames a part of a comment
Date: Sat, 21 Jan 2023 11:06:08 +0300 (MSK)
User-agent: Alpine 2.22 (DEB 394 2020-01-19)


Hello,

I've found somewhat interesting bug.

Steps to reproduce

1) take http://nishi.dreamhosters.com/u/fpaq0p.cpp
(the file attached)

2) note this line:
// Assume a stationary order 0 stream of 9-bit symbols

3) remove '\r'

cp fpaq0p.cpp fpaq0p.copy.cpp
tr -d '\015' < fpaq0p.copy.cpp > fpaq0p.cpp

4) now run indent like this

indent -linux fpaq0p.cpp

5) result, after the mentioned line:

// Assume a stationary order 0 stream of 9-bit symbols int P() const {
                return (p[cxt]);
        } void update(int y) {

The beginning of function P() become a part of the comment.

Sincerely,
Eugene.

Attachment: fpaq0p.cpp
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]