From f77c8ccf4b6bf7357c15d80eca9769bed4907163 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 9 Feb 2002 07:39:50 +0000 Subject: Fixed problem with keywords followed by colons not appearing as keywords. --- src/LexPython.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/LexPython.cxx') diff --git a/src/LexPython.cxx b/src/LexPython.cxx index 234bdf718..35a5a92be 100644 --- a/src/LexPython.cxx +++ b/src/LexPython.cxx @@ -83,11 +83,11 @@ static int GetPyStringState(Accessor &styler, int i, int *nextIndex) { } } -inline bool IsAWordChar(int ch) { +static inline bool IsAWordChar(int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '.' || ch == '_'); } -inline bool IsAWordStart(int ch) { +static inline bool IsAWordStart(int ch) { return (ch < 0x80) && (isalnum(ch) || ch == '_'); } -- cgit v1.2.3