ddfreyne changed the topic of #nanoc to: 3.6.11 (may 9th) | web http://nanoc.ws/ | repo http://bit.ly/XE6e3G | issues http://bit.ly/VfXaSV | forum http://ho.io/n-discuss | irclog http://irclog.whitequark.org/nanoc
bghost has quit [Ping timeout: 252 seconds]
tetor has quit [Ping timeout: 240 seconds]
tetor has joined #nanoc
tetor has quit []
canton7 has joined #nanoc
cDlm has quit [Quit: Computer has gone to sleep.]
cDlm has joined #nanoc
fullbit has joined #nanoc
<fullbit> Hello all. I'm having trouble setting up nanoc to parse and use AsciiDoc in a similar manner that the tutorial setups with Markdown.
<fullbit> Getting some sort of textual filters cannot work on binary items error
<canton7> fullbit, in nanoc.yaml, check that your asciidoc file extension appears in text_extensions ?
<cDlm> +1
<fullbit> You win today canton7
<fullbit> :)
<canton7> yay :)
<fullbit> Thank you very much!
fullbit has quit [Quit: Leaving.]
fullbit has joined #nanoc
jugglinmike has joined #nanoc
<guardian> hi
<guardian> ddfreyne: what's your preferred syntax for writing regexp based rules?
<guardian> ddfreyne: %r{}?
<bobthecow> guardian: because that's what it means (meant)
<bobthecow> foo/* == /foo\/.*?/
<bobthecow> 4.x changes that though.
<bobthecow> guardian: from the ruby style guide:
<bobthecow> Use %r only for regular expressions matching more than one '/' character.
<bobthecow> Prefer () as delimiters for all % literals, except %r. Since braces often appear inside regular expressions in many scenarios a less common character like { might be a better choice for a delimiter, depending on the regexp's content.
<bobthecow> ... so based on those two rules, if it has more than one /, use %r{}
<bobthecow> if it has zero or one slash, use //
<guardian> bobthecow: ? is redundant with the star operator
<guardian> .*? == .* right?
<bobthecow> no, that's the greediness modifier.
<bobthecow> .*? == "as few . as possible"
<guardian> oh ok
<guardian> overlooked that
<bobthecow> that way you can match /foo/*/bar/
<bobthecow> otherwise the .* replacement would eat /bar/ and nothing would match.
<bobthecow> or rather, it would match in unpredictable ways.
<guardian> thx
fullbit has quit [Quit: Leaving.]
prxq has joined #nanoc
<ddfreyne> guardian: %r{} is quite nice, because it doesn’t requir you to escape /
cDlm has quit [Ping timeout: 265 seconds]
alerante has quit [Remote host closed the connection]
cDlm has joined #nanoc
alerante has joined #nanoc
alerante has quit [Ping timeout: 260 seconds]
louquillio_ has quit [Quit: Leaving]
louquillio_ has joined #nanoc
alerante has joined #nanoc
jugglinmike has quit [Quit: Leaving.]
prxq has quit [Ping timeout: 245 seconds]