-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Prolog source layout #186
Comments
Spaces: +1. |
Move cut to its own line: +1 |
@JanWielemaker What is it exactly that you want to make available? |
I probably want to make the re-indenter available for people who used the old SWI-Prolog layout and want to migrate to the new. Most likely as a pack. |
This is all done. See https://github.com/JanWielemaker/reindent |
This system preserves comments inlined with the code right?
…On Mon, Jan 9, 2017 at 8:07 AM, Jan Wielemaker ***@***.***> wrote:
Closed #186 <#186>.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#186 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAcgAc866hK_8mut5ZaMVuP4qYiYRwBEks5rQls_gaJpZM4LLh09>
.
|
Yes. Well, it works quite ok provided you used the previous SWI-Prolog style. If rewrites that style |
One example where the indentation of a comment broke: SWI-Prolog/packages-ssl@6608d61#diff-08cee23742245590436e7e17427f44a2 Please see line 51 of |
Jan, is this code available somewhere?
Jan sez:
To facilitate this I wrote a Prolog program to convert the current layout reliably. I exploits the library prolog_colour to created a detailed annotated parse tree. How to make this available?Possibly additional transformations:
* Move the cut (!) to its own line?
|
See https://github.com/JanWielemaker/reindent |
According to https://arxiv.org/pdf/0911.2899.pdf, the preferred layout for Prolog is to indent clause bodies with 4 and use spaces. I'm in favour of changing to this indentation and update the default settings for PceEmacs accordingly.
To facilitate this I wrote a Prolog program to convert the current layout reliably. I exploits the library
prolog_colour
to created a detailed annotated parse tree. How to make this available?Possibly additional transformations:
The text was updated successfully, but these errors were encountered: