rb.js 287 B

123456789
  1. /**
  2. * Ruby
  3. */
  4. module.exports = {
  5. // find document blocks between '=begin' and '=end'
  6. docBlocksRegExp: /#\*\*\uffff?(.+?)\uffff?(?:\s*)?#\*|=begin\uffff?(.+?)\uffff?(?:\s*)?=end/g,
  7. // remove not needed ' # ' and tabs at the beginning
  8. inlineRegExp: /^(\s*)?(#)[ ]?/gm
  9. };