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

Preprocessor define replaces parts of token #141

Closed
mystery-e204 opened this issue Sep 19, 2019 · 1 comment
Closed

Preprocessor define replaces parts of token #141

mystery-e204 opened this issue Sep 19, 2019 · 1 comment
Labels

Comments

@mystery-e204
Copy link

The parser for preprocessor defines (specified in .fortls) wrongly replaces parts of single tokens. Here is what I mean by that. Given the source file

#define FOO replaced_1
#define BAR replaced_2
FOO
FOO_abc
FOO_BAR

Intellisense lists the following symbols:

replaced_1
replaced_1_abc
replaced_1_replaced_2

However, it should be:

replaced_1
FOO_abc
FOO_BAR
@hansec hansec added the bug label Sep 19, 2019
@hansec hansec closed this as completed in e7a9554 Sep 19, 2019
@hansec
Copy link
Owner

hansec commented Sep 19, 2019

Thanks for the report! This should now be fixed in master and will be included in the next patch.

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

2 participants