Skip to content

Commit 2096450

Browse files
committed
Try to get the
Nodeclipse#19 fixed
1 parent 213c6c5 commit 2096450

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

csep/META-INF/MANIFEST.MF

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ Require-Bundle: org.apache.log4j;bundle-version="1.2.15";visibility:=reexport,
1919
org.eclipse.xtext.common.types,
2020
org.eclipse.xtext.xbase.lib;bundle-version="2.0.0";visibility:=reexport,
2121
org.apache.commons.logging;bundle-version="1.0.4";resolution:=optional;visibility:=reexport,
22-
org.eclipse.xtext.ui.codetemplates;bundle-version="2.0.0"
22+
org.eclipse.xtext.ui.codetemplates;bundle-version="2.0.0",
23+
org.apache.commons.lang;bundle-version="2.6.0"
2324
Import-Package: org.apache.commons.logging,
2425
org.apache.log4j,
2526
org.eclipse.xtext.xbase.lib

csep/out.coffee

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
(($)->22
2+
$=jQuery
3+
$.CoreHelper=
4+
{sendAjaxRequest:()->22}
5+
_default={
6+
dataType:'json'
7+
type:'POST'
8+
data:{}
9+
url:null
10+
beforeSend:->22
11+
success:(data)->22
12+
complete:->22}
13+
14+
)(jQuery)
15+
16+
17+
18+
19+
s

csep/src/com/aptana/editor/coffee/parsing/lexer/CoffeeScanner.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
import java.util.regex.Matcher;
2121
import java.util.regex.Pattern;
2222

23+
import org.apache.commons.lang.StringUtils;
24+
2325
import beaver.Scanner;
2426

2527
import com.aptana.editor.coffee.parsing.Terminals;
@@ -970,7 +972,7 @@ private int whitespaceToken() {
970972

971973
private void newlineToken(int i) {
972974
if (this.tag() != Terminals.TERMINATOR) {
973-
this.token(Terminals.TERMINATOR, "\n", i);
975+
this.token(Terminals.TERMINATOR, StringUtils.leftPad("", i, "\n"), i);
974976
}
975977
// return this;
976978
}

0 commit comments

Comments
 (0)