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

Add support for alternative operator representations (#94) #179

Merged
merged 1 commit into from
Oct 3, 2022

Conversation

jdrouhard
Copy link
Collaborator

This is an alternative implementation of #170.

This adds support for the alternative operator representations in unary, binary, and assignment expressions, as well as when using in explicit operator calls and overload declarations/definitions.

This does not support full token substitution the preprocessor performs (these alternate tokens can be substituted anywhere the tokens they represent appear, but in this grammar they are only supported in the above expressions).

This also does not add support for alternate token representations of the brace tokens ('{', '}', '[', ']') or preprocessor directives ('#', '##')

Resolves #170
Resolves #94

This adds support for the alternative operator representations in unary,
binary, and assignment expressions, as well as when using in explicit
operator calls and overload declarations/definitions.

This does _not_ support full token substitution the preprocessor
performs (these alternate tokens can be substituted _anywhere_ the
tokens they represent appear, but in this grammar they are only
supported in the above expressions).

This also does _not_ add support for alternate token representations of
the brace tokens ('{', '}', '[', ']') or preprocessor directives
('#', '##')
@jdrouhard jdrouhard merged commit d5e90fb into tree-sitter:master Oct 3, 2022
@jdrouhard jdrouhard deleted the alternative_operators branch October 3, 2022 19:48
mliszcz added a commit to mliszcz/nvim-treesitter that referenced this pull request Oct 11, 2022
These keywords are now supported by the parser.
See: tree-sitter/tree-sitter-cpp#179
clason pushed a commit to nvim-treesitter/nvim-treesitter that referenced this pull request Oct 11, 2022
These keywords are now supported by the parser.
See: tree-sitter/tree-sitter-cpp#179
mliszcz added a commit to mliszcz/.vim that referenced this pull request Oct 11, 2022
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.

capture-api cannot handle "and" keyword correctly
2 participants