The specification has to come with feature and/or the language, not the tool. 
How would Emacs know about it? Or Notepad? Every editor — and every tool in the 
tool chain — must know what indentation means if it may touch it. 




> On Aug 25, 2016, at 6:00 PM, Dupéron Georges <jahvascriptman...@gmail.com> 
> wrote:
> 
> Le jeudi 25 août 2016 23:47:21 UTC+2, Matthias Felleisen a écrit :
>> If Travis re-indented my benchmarks/samples every time I commit one, I would 
>> be rather unhappy. 
> 
> I think that's what David meant by "A way to represent indentation 
> specifications for new syntactic forms": the idea would be to include in the 
> repository a list of define-style, lambda-style, begin-style and 
> for/fold-style keywords, so that the build knows how to indent 
> project-specific and library-specific identifiers.
> 
>> I would like us to wait until languages can choose an indentation style per 
>> construct. 
> 
> If I understood well, I think this can already be done with 
> 'drracket:indentation to override drracket's indentation function (and with a 
> bit of luck, Robby's script already takes that into account).
> 
> I didn't know this had been used in practice, but surprisingly (for me) 
> github's search for `drracket:indentation` turned up several repositories:
> * https://github.com/mbutterick/beautiful-racket
> * scribble seems to use it
> * a few other random repos

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to