Skip to content

Instantly share code, notes, and snippets.

@StanAngeloff
Created April 22, 2010 10:38
Show Gist options
  • Save StanAngeloff/375065 to your computer and use it in GitHub Desktop.
Save StanAngeloff/375065 to your computer and use it in GitHub Desktop.
diff --git a/src/lexer.coffee b/src/lexer.coffee
index 1fba057..59c0595 100644
--- a/src/lexer.coffee
+++ b/src/lexer.coffee
@@ -199,7 +199,7 @@ exports.Lexer: class Lexer
prev: @prev(2)
size: indent.match(LAST_DENTS).reverse()[0].match(LAST_DENT)[1].length
next_character: @chunk.match(MULTI_DENT)[4]
- no_newlines: next_character is '.' or @unfinished()
+ no_newlines: next_character is '.' or next_character is '+' or @unfinished()
if size is @indent
return @suppress_newlines() if no_newlines
return @newline_token indent
@@ -483,7 +483,7 @@ OPERATOR : /^([+\*&|\/\-%=<>:!?]+)([ \t]*)/
WHITESPACE : /^([ \t]+)/
COMMENT : /^(((\n?[ \t]*)?#[^\n]*)+)/
CODE : /^((-|=)>)/
-MULTI_DENT : /^((\n([ \t]*))+)(\.)?/
+MULTI_DENT : /^((\n([ \t]*))+)([\.\+])?/
LAST_DENTS : /\n([ \t]*)/g
LAST_DENT : /\n([ \t]*)/
ASSIGNMENT : /^(:|=)$/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment