builder: Handle trailing \ appropriately.
Michael Crosby authored on 2014/10/16 04:11:37... | ... |
@@ -32,7 +32,7 @@ type Node struct { |
32 | 32 |
var ( |
33 | 33 |
dispatch map[string]func(string) (*Node, map[string]bool, error) |
34 | 34 |
TOKEN_WHITESPACE = regexp.MustCompile(`[\t\v\f\r ]+`) |
35 |
- TOKEN_LINE_CONTINUATION = regexp.MustCompile(`\\$`) |
|
35 |
+ TOKEN_LINE_CONTINUATION = regexp.MustCompile(`\\\s*$`) |
|
36 | 36 |
TOKEN_COMMENT = regexp.MustCompile(`^#.*$`) |
37 | 37 |
) |
38 | 38 |
|