Skip to content

ignore :cursor_binary_operator, :cursor_unary_operator#4

Open
alex-dorokhov wants to merge 1 commit intoCoderBaron:masterfrom
alex-dorokhov:ignore-operators
Open

ignore :cursor_binary_operator, :cursor_unary_operator#4
alex-dorokhov wants to merge 1 commit intoCoderBaron:masterfrom
alex-dorokhov:ignore-operators

Conversation

@alex-dorokhov
Copy link

This commit allows to ignore arithmetic operators in sources for cases like:
static int const API_ERROR = -101;
and
static int const API_ERROR = 100 + 1;

Without the fix bro-gen complains about it and crashes with message like:

Unknown cursor kind :cursor_unary_operator in global value ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant