From a60206ecb6729cd1ee44a39aaf132cb60173b32d Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 12 Feb 2002 10:35:17 +0000 Subject: Minor fixes to lexers. --- src/KeyWords.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/KeyWords.cxx') diff --git a/src/KeyWords.cxx b/src/KeyWords.cxx index 7aa56d5fe..288c64d21 100644 --- a/src/KeyWords.cxx +++ b/src/KeyWords.cxx @@ -63,7 +63,7 @@ const LexerModule *LexerModule::Find(const char *languageName) { void LexerModule::Lex(unsigned int startPos, int lengthDoc, int initStyle, WordList *keywordlists[], Accessor &styler) const { if (fnLexer) - fnLexer(startPos, lengthDoc, initStyle, keywordlists, styler); + fnLexer(startPos, lengthDoc-1, initStyle, keywordlists, styler); } void LexerModule::Fold(unsigned int startPos, int lengthDoc, int initStyle, -- cgit v1.2.3