aboutsummaryrefslogtreecommitdiffhomepage
path: root/tokenizer.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-19 02:41:57 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-19 02:41:57 -0800
commit44ce3e67315e71ee646106219200b2a7f93fd3b3 (patch)
treeedba52bffd7f8bd11c9bb8d82a55b0d240e6c63c /tokenizer.h
parent26678682ca90b68f19b993e259bf43384c0a18ec (diff)
Changes to make word movement less aggressive
Diffstat (limited to 'tokenizer.h')
-rw-r--r--tokenizer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tokenizer.h b/tokenizer.h
index daa4a0b1..ae6b6ecc 100644
--- a/tokenizer.h
+++ b/tokenizer.h
@@ -168,6 +168,14 @@ const wchar_t *tok_string(tokenizer *tok);
wchar_t *tok_first(const wchar_t *str);
/**
+ Indicates whether a character can be part of a string, or is a string separator.
+ Separators include newline, tab, |, ^, >, <, etc.
+
+ is_first should indicate whether this is the first character in a potential string.
+*/
+bool tok_is_string_character(wchar_t c, bool is_first);
+
+/**
Move tokenizer position
*/
void tok_set_pos(tokenizer *tok, int pos);