emacs/layers.personal/misctools/my-polymode/local/polymode/samples/minimal.md
2018-04-07 10:54:04 +08:00

490 B

If poly-markdown.el is loaded. This should work by default. Otherwise M-x poly-markdown+r-mode RET should do the job.

1 + 1
## [1] 2

 0.4 - 0.7 + 0.3  # what? it is not zero!
## [1] 5.551e-17
(message  "it works")
{
    
}
  if len($declaration) > 0 and $declaration::isTypedef:
      $Symbols::types.add($IDENTIFIER.text)
      print "define type "+$IDENTIFIER.text  # line 19