Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (14 sloc) 0.453 kB
# File: test.coffee
# Date: Wed Mar 26 11:47:28 2014 +0800
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
vimhl = require('./vimhl').vimHighlight
fs = require('fs')
test = """
void f(tuple<int, string> x) { /* ...*/ }
f(make_tuple(1, "hah")); // Copy!
f(forward_as_tuple(1, "hah")); // Perfect
// f({1, "hah"}); // ERROR, cannot use initialization list
"""
html = vimhl test, 'cpp'
fd = fs.openSync('/tmp/a.html', 'w')
fs.writeSync(fd, html)
Jump to Line
Something went wrong with that request. Please try again.