1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

adding the broken test

This commit is contained in:
Jeremy Ashkenas 2010-03-09 23:32:54 -05:00
parent 3d14d362a8
commit 5754d36fdd

View file

@ -5,8 +5,8 @@ js: CoffeeScript.compile("one\r\ntwo", {no_wrap: on})
ok js is "one;\ntwo;"
# Try out language extensions to CoffeeScript.
#
# Try out language extensions to CoffeeScript. (Not yet working.)
# class SplitNode extends BaseNode
# type: 'Split'
#
@ -19,11 +19,13 @@ ok js is "one;\ntwo;"
# CoffeeScript.extend ->
# return false unless variable: @match /^--(\w+)--/, 1
# @i += variable.length + 4
# @token 'EXTENSION', new SplitNode(variable)
# node: new SplitNode(variable)
# p node
# @token 'EXTENSION', node
# true
#
# js: CoffeeScript.nodes('print --name--', {no_wrap: on})
# js: CoffeeScript.tokens('print --tobesplit--', {no_wrap: on})
#
# p js.children[0].children
# p js
#
# Lexer.extensions: []