diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-11-19 02:41:57 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-11-19 02:41:57 -0800 |
commit | 44ce3e67315e71ee646106219200b2a7f93fd3b3 (patch) | |
tree | edba52bffd7f8bd11c9bb8d82a55b0d240e6c63c /tokenizer.h | |
parent | 26678682ca90b68f19b993e259bf43384c0a18ec (diff) |
Changes to make word movement less aggressive
Diffstat (limited to 'tokenizer.h')
-rw-r--r-- | tokenizer.h | 8 |
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); |