[Bro] Bro script spacing

JP Bourget jp.bourget at gmail.com
Thu Aug 22 14:18:39 PDT 2013


Thanks man! This makes sense - I wonder is Seth or someone has a trick to
get this work in Sublime Text - I'll try and find one myself and post it if
I can.


On Thu, Aug 22, 2013 at 3:24 PM, Matthias Vallentin <vallentin at icir.org>wrote:

> > I hear there is a "style/format" for spacing syntax in bro scripts.
> Where can I become familiar with this?
> The indentation is called Whitesmiths style [1]. We currently don't
> have an exact guideline, for example like Google's style guide [2].
> Maybe some editors have the ability to explicitly set a style. At
> least in Vim, you can use this:
>      autocmd FileType bro set noexpandtab cino='>1s,f1s,{1s'
> This gives you reasonably close support for brace placement. (It also
> assumes you have a Bro syntax plugin.)
> I'm curious how others have tweaked their editors, not for syntax
> highlighting, but to get an efficient and style-compatible working
> environment.
>      Matthias
> [1] http://en.wikipedia.org/wiki/Indent_style#Whitesmiths_style
> [2] https://code.google.com/p/google-styleguide/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20130822/6c9032e5/attachment.html 

More information about the Bro mailing list