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

Documentation: assignment substitution? Underscore? #67

Closed
hhzl opened this issue Jul 16, 2015 · 2 comments
Closed

Documentation: assignment substitution? Underscore? #67

hhzl opened this issue Jul 16, 2015 · 2 comments

Comments

@hhzl
Copy link
Contributor

hhzl commented Jul 16, 2015

On 7/15/2015 8:43 PM, Phil (list) wrote:

Is there a setting that will disable this substitution?  I would
actually prefer it to go the other way: if it sees an _ assignment,
replace it with :=

JV answered.

Please check #syntaxHighlightingAsYouTypeAnsiAssignment and #syntaxHighlightingAsYouTypeLeftArrowAssignment . Both default to false.

Would turning on #syntaxHighlightingAsYouTypeAnsiAssignment be enough for you?

Update FAQ entry or note

@hhzl
Copy link
Contributor Author

hhzl commented Jul 16, 2015

Phil on ML

I'm already setting #syntaxHighlightingAsYouTypeAnsiAssignment to true
and leaving #syntaxHighlightingAsYouTypeLeftArrowAssignment at false.
That seems to work for everything except pretty printing. I also played
with #allowUnderscoreAssignments but that just determines whether or not
_ is valid and doesn't stop pretty print trying to use underscores
anyway (which is entertaining because then pp produces invalid code :-)

@jvuletich
Copy link
Member

Is it working correctly now? If so, please close the issue. If not, please give more details on how to reproduce problems.

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

No branches or pull requests

2 participants