Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 453 Bytes
# 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)
Something went wrong with that request. Please try again.