aboutsummaryrefslogtreecommitdiffhomepage
path: root/tokenizer.cpp
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.cpp
parent26678682ca90b68f19b993e259bf43384c0a18ec (diff)
Changes to make word movement less aggressive
Diffstat (limited to 'tokenizer.cpp')
-rw-r--r--tokenizer.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tokenizer.cpp b/tokenizer.cpp
index 1f8e97cf..ebe163b5 100644
--- a/tokenizer.cpp
+++ b/tokenizer.cpp
@@ -224,7 +224,7 @@ int tokenizer::line_number_of_character_at_offset(size_t offset)
/**
Tests if this character can be a part of a string. The redirect ^ is allowed unless it's the first character.
*/
-static bool is_string_char(wchar_t c, bool is_first)
+bool tok_is_string_character(wchar_t c, bool is_first)
{
switch (c)
{
@@ -248,7 +248,6 @@ static bool is_string_char(wchar_t c, bool is_first)
default:
return true;
-
}
}
@@ -368,7 +367,7 @@ static void read_string(tokenizer *tok)
default:
{
- if (!is_string_char(*(tok->buff), is_first))
+ if (!tok_is_string_character(*(tok->buff), is_first))
{
do_loop=0;
}