File: README.litcoffee

package info (click to toggle)
ruby-github-markup 1.2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 316 kB
  • ctags: 65
  • sloc: ruby: 281; python: 85; sh: 15; makefile: 13
file content (59 lines) | stat: -rw-r--r-- 955 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Literate CoffeeScript Test
--------------------------

> Taken from https://github.com/jashkenas/coffee-script/blob/master/test/literate.litcoffee

comment comment

    test "basic literate CoffeeScript parsing", ->
      ok yes

now with a...

    test "broken up indentation", ->

... broken up ...

      do ->

... nested block.

        ok yes

Code must be separated from text by a blank line.

    test "code blocks must be preceded by a blank line", ->

The next line is part of the text and will not be executed.
      fail()

      ok yes

Code in `backticks is not parsed` and...

    test "comments in indented blocks work", ->
      do ->
        do ->
          # Regular comment.

          ###
            Block comment.
          ###

          ok yes

Regular [Markdown](http://example.com/markdown) features,
like links and unordered lists, are fine:

  * I

  * Am

  * A

  * List

Tabs work too:

  test "tabbed code", ->
    ok yes