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 unary operators + and - to the interpolation syntax #3621

Merged
merged 1 commit into from
Dec 18, 2015

Conversation

jszwedko
Copy link
Contributor

This adds support to the configuration interpolation syntax for + and -
as unary operators, specifically to represent negative numbers.

This is the first time I've touched the AST code, so I'm sure that I did something wrong.

@jszwedko jszwedko changed the title Add support for unary operators + and - Add support for unary operators + and - to the interpolation syntax Oct 23, 2015
@phinze
Copy link
Contributor

phinze commented Oct 29, 2015

This LGTM - but I'd like to get @mitchellh's eyes on it too.

This adds support to the configuration interpolation syntax for + and -
as unary operators, specifically to represent negative numbers.
@jszwedko jszwedko force-pushed the add-support-for-negative-literals branch from c141167 to 41f9ebc Compare December 18, 2015 18:05
@jszwedko
Copy link
Contributor Author

Rebased to get mergeable again. Let me know what you think @mitchellh.

@mitchellh
Copy link
Contributor

This all LGTM. Great job.

@phinze
Copy link
Contributor

phinze commented Dec 18, 2015

👍

phinze added a commit that referenced this pull request Dec 18, 2015
Add support for unary operators + and - to the interpolation syntax
@phinze phinze merged commit 43a91cf into hashicorp:master Dec 18, 2015
@jszwedko jszwedko deleted the add-support-for-negative-literals branch December 18, 2015 21:06
VladRassokhin referenced this pull request in hashicorp/hil Mar 5, 2016
@ghost
Copy link

ghost commented Apr 29, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants