Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line count off by one in error messages #65

Open
logological opened this issue Sep 26, 2023 · 1 comment
Open

Line count off by one in error messages #65

logological opened this issue Sep 26, 2023 · 1 comment
Labels

Comments

@logological
Copy link
Owner

The line count in GPP's error messages appear to be off by one.

Example: echo '#undef x y' | gpp produces stdin:2: warning: Extra argument to #undef ignored but we expect stdin:1: warning: Extra argument to #undef ignored

@logological
Copy link
Owner Author

logological commented Sep 26, 2023

Problem seems to affect only C-like modes. HTML and TeX mode are unaffected. Possibly this is because in C-like modes, it's the newline that ends the macro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant