Merge pull request #41 from blackducksw/ubuntu_14
[ohcount] / test / src_dir / foo.coffee
1 # A CoffeeScript parser test file
2
3 simple_code = true
4
5 ###
6 A multi-line block comment
7 begins and ends with three hash marks
8 ###
9
10 multi_line_string = '''
11                     A multi-line string constant ("here doc")
12                     begins and ends with three quote marks
13                     '''
14
15 foo = "A string can wrap across multiple lines
16   and may contain #{interpolated_values}"
17
18
19 ###
20 A clever parser can use Ohcount's "Polyglot" feature treat the
21 following as embedded JavaScript.
22 ###
23 embedded_js = `function() {
24   return [document.title, "Hello JavaScript"].join(": ");
25 }`
26