[Cuis] Preventing pretty print from replacing := with _?
Juan Vuletich
juan at jvuletich.org
Fri Jul 17 08:51:38 CDT 2015
On 7/16/2015 3:36 PM, Phil (list) wrote:
> Juan,
>
> On Thu, 2015-07-16 at 10:01 -0300, Juan Vuletich wrote:
>> 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 :=
>>>
>>> Thanks,
>>> Phil
>> Please check #syntaxHighlightingAsYouTypeAnsiAssignment and
>> #syntaxHighlightingAsYouTypeLeftArrowAssignment . Both default to false.
>>
>> Would turning on #syntaxHighlightingAsYouTypeAnsiAssignment be enough
>> for you?
>>
> I'm already setting #syntaxHighlightingAsYouTypeAnsiAssignment to true
> and leaving #syntaxHighlightingAsYouTypeLeftArrowAssignment at false.
> That seems to work for everything except pretty printing.
But, are you using Shout on the code pane? Can you list simple steps to
reproduce on a fresh Cuis image?
> 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 :-)
Yep. We could indeed fix that. Ok. I'll include it in the next commit.
Cheers,
Juan Vuletich
>> Cheers,
>> Juan Vuletich
> Thanks,
> Phil
>
>
More information about the Cuis
mailing list