Sha256: 41ee0d5c1ab37b9458af54362be94e80b09020a439796c62859ebdfddb5921ee

Contents?: true

Size: 552 Bytes

Versions: 10

Compression:

Stored size: 552 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)); }
  
  # 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

10 entries across 10 versions & 2 rubygems

Version Path
jeremy-RedCloth-4.1.1 ext/redcloth_scan/redcloth_common.c.rl
RedCloth-4.1.0 ext/redcloth_scan/redcloth_common.c.rl
RedCloth-4.1.1-x86-mswin32-60 ext/redcloth_scan/redcloth_common.c.rl
RedCloth-4.1.0-x86-mswin32-60 ext/redcloth_scan/redcloth_common.c.rl
RedCloth-4.1.1-universal-java ext/redcloth_scan/redcloth_common.c.rl
RedCloth-4.1.0-universal-java ext/redcloth_scan/redcloth_common.c.rl
RedCloth-4.1.9-universal-java ext/redcloth_scan/redcloth_common.c.rl
RedCloth-4.1.9 ext/redcloth_scan/redcloth_common.c.rl
RedCloth-4.1.1 ext/redcloth_scan/redcloth_common.c.rl
RedCloth-4.1.9-x86-mswin32-60 ext/redcloth_scan/redcloth_common.c.rl