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:
parent
3d14d362a8
commit
5754d36fdd
1 changed files with 7 additions and 5 deletions
|
@ -5,8 +5,8 @@ js: CoffeeScript.compile("one\r\ntwo", {no_wrap: on})
|
||||||
ok js is "one;\ntwo;"
|
ok js is "one;\ntwo;"
|
||||||
|
|
||||||
|
|
||||||
# Try out language extensions to CoffeeScript.
|
# Try out language extensions to CoffeeScript. (Not yet working.)
|
||||||
#
|
|
||||||
# class SplitNode extends BaseNode
|
# class SplitNode extends BaseNode
|
||||||
# type: 'Split'
|
# type: 'Split'
|
||||||
#
|
#
|
||||||
|
@ -19,11 +19,13 @@ ok js is "one;\ntwo;"
|
||||||
# CoffeeScript.extend ->
|
# CoffeeScript.extend ->
|
||||||
# return false unless variable: @match /^--(\w+)--/, 1
|
# return false unless variable: @match /^--(\w+)--/, 1
|
||||||
# @i += variable.length + 4
|
# @i += variable.length + 4
|
||||||
# @token 'EXTENSION', new SplitNode(variable)
|
# node: new SplitNode(variable)
|
||||||
|
# p node
|
||||||
|
# @token 'EXTENSION', node
|
||||||
# true
|
# 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: []
|
# Lexer.extensions: []
|
Loading…
Add table
Reference in a new issue