aboutsummaryrefslogtreecommitdiffhomepage
path: root/tokenizer.h
diff options
context:
space:
mode:
authorGravatar Sanne Wouda <sanne.wouda@gmail.com>2015-03-13 13:05:22 +0100
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-04-05 23:03:24 -0700
commit318daaffb2d2551523a84acaaab57d79deb1cf22 (patch)
treedfe78f952489b7e77790d946a74ad6968511ce5b /tokenizer.h
parentcad1dc529319c5c1bd47fb002723c97a6a828509 (diff)
Ignore comments for backslash newline
Works also if tok->show_comments (for highlighting and auto completion) and with multi-line comments: function my_function echo "hello" | \ #remove 'l' #and more tr -d 'l' end $ my_function heo Fixes #983
Diffstat (limited to 'tokenizer.h')
-rw-r--r--tokenizer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tokenizer.h b/tokenizer.h
index f51906e7..d7e202ba 100644
--- a/tokenizer.h
+++ b/tokenizer.h
@@ -103,6 +103,9 @@ struct tokenizer_t
size_t cached_lineno_offset;
int cached_lineno_count;
+ /* Whether to continue the previous line after the comment */
+ bool continue_line_after_comment;
+
/**
Constructor for a tokenizer. b is the string that is to be
tokenized. It is not copied, and should not be freed by the caller