]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/coffee-mode/examples/edge.coffee
Add coffee-mode.
[gnu-emacs-elpa] / packages / coffee-mode / examples / edge.coffee
diff --git a/packages/coffee-mode/examples/edge.coffee b/packages/coffee-mode/examples/edge.coffee
new file mode 100644 (file)
index 0000000..7682a58
--- /dev/null
@@ -0,0 +1,16 @@
+# Edge cases
+
+if string.match /\// or string.match /\x1b/ or string.match /a\/b/
+  console.log "matched"
+
+string = "Something with a \"double quote"
+console.log string
+
+string = 'Something with a \'single quote'
+console.log string
+
+# TODO
+heredoc = """
+  Heredoc with a " double quote
+"""
+console.log heredoc