Sha256: 2eee65c2f69993d5ac45f433513bc2c5540ec88fb1185270c248d574e82119a2

Contents?: true

Size: 618 Bytes

Versions: 8

Compression:

Stored size: 618 Bytes

Contents

%%{
  
  machine redcloth_common;
  include redcloth_common "redcloth_common.rl";
  
  action esc { rb_str_cat_escaped(self, block, ts, te); }
  action esc_pre { rb_str_cat_escaped_for_preformatted(self, block, ts, te); }
  action ignore { rb_str_append(block, rb_funcall(self, rb_intern("ignore"), 1, regs)); }
  action esc_test {rb_str_cat_escaped_test(self, block, ts, te);}
  
  # conditionals
  action starts_line {
    p == orig_p || *(p-1) == '\r' || *(p-1) == '\n' || *(p-1) == '\f'
  }
  action starts_phrase {
    p == orig_p || *(p-1) == '\r' || *(p-1) == '\n' || *(p-1) == '\f' || *(p-1) == ' '
  }
  
}%%;

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
BBRedCloth-0.8.8 ext/redcloth_scan/redcloth_common.c.rl
BBRedCloth-0.8.7 ext/redcloth_scan/redcloth_common.c.rl
BBRedCloth-0.8.6 ext/redcloth_scan/redcloth_common.c.rl
BBRedCloth-0.8.5 ext/redcloth_scan/redcloth_common.c.rl
BBRedCloth-0.8.4 ext/redcloth_scan/redcloth_common.c.rl
BBRedCloth-0.8.3 ext/redcloth_scan/redcloth_common.c.rl
BBRedCloth-0.8.2 ext/redcloth_scan/redcloth_common.c.rl
BBRedCloth-0.8.1 ext/redcloth_scan/redcloth_common.c.rl