diff options
| author | nyamatongwe <unknown> | 2000-03-31 10:48:16 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2000-03-31 10:48:16 +0000 | 
| commit | 15652dd121e1bb3a2a45d23883dfb7ad27aade34 (patch) | |
| tree | 24f9390973c1653f7d1e33bde398f1bc0f74fa05 /src/KeyWords.cxx | |
| parent | 5343d289cdcb5b1a9cb30c0ac6418f77c389e48c (diff) | |
| download | scintilla-mirror-15652dd121e1bb3a2a45d23883dfb7ad27aade34.tar.gz | |
Fixed line ends.
Fixed lastXChosen after Backspace or Ctrl+Backspace.
Diffstat (limited to 'src/KeyWords.cxx')
| -rw-r--r-- | src/KeyWords.cxx | 90 | 
1 files changed, 45 insertions, 45 deletions
| diff --git a/src/KeyWords.cxx b/src/KeyWords.cxx index 91ce04433..5d6d9c6cf 100644 --- a/src/KeyWords.cxx +++ b/src/KeyWords.cxx @@ -1,45 +1,45 @@ -// SciTE - Scintilla based Text Editor
 -// KeyWords.cxx - colourise for particular languages
 -// Copyright 1998-2000 by Neil Hodgson <neilh@scintilla.org>
 -// The License.txt file describes the conditions under which this software may be distributed.
 -
 -#include <stdlib.h> 
 -#include <string.h> 
 -#include <ctype.h> 
 -#include <stdio.h> 
 -#include <stdarg.h> 
 -
 -#include "Platform.h"
 -
 -#include "PropSet.h"
 -#include "Accessor.h"
 -#include "KeyWords.h"
 -#include "Scintilla.h"
 -#include "SciLexer.h"
 -
 -LexerModule *LexerModule::base = 0;
 -
 -LexerModule::LexerModule(int language_, LexerFunction fn_) :
 -	language(language_), fn(fn_) {
 -	next = base;
 -	base = this;
 -}
 -
 -void LexerModule::Colourise(unsigned int startPos, int lengthDoc, int initStyle,
 -		int language, WordList *keywordlists[], StylingContext &styler) {
 -	LexerModule *lm = base;
 -	while (lm) {
 -		if (lm->language == language) {
 -			lm->fn(startPos, lengthDoc, initStyle, keywordlists, styler);
 -			return;
 -		}
 -		lm = lm->next;
 -	}
 -	// Unknown language
 -	// Null language means all style bytes are 0 so just mark the end - no need to fill in.
 -	if (lengthDoc > 0) {
 -		styler.StartAt(startPos + lengthDoc - 1);
 -		styler.StartSegment(startPos + lengthDoc - 1);
 -		styler.ColourTo(startPos + lengthDoc - 1, 0);
 -	}
 -}
 +// SciTE - Scintilla based Text Editor +// KeyWords.cxx - colourise for particular languages +// Copyright 1998-2000 by Neil Hodgson <neilh@scintilla.org> +// The License.txt file describes the conditions under which this software may be distributed. + +#include <stdlib.h>  +#include <string.h>  +#include <ctype.h>  +#include <stdio.h>  +#include <stdarg.h>  + +#include "Platform.h" + +#include "PropSet.h" +#include "Accessor.h" +#include "KeyWords.h" +#include "Scintilla.h" +#include "SciLexer.h" + +LexerModule *LexerModule::base = 0; + +LexerModule::LexerModule(int language_, LexerFunction fn_) : +	language(language_), fn(fn_) { +	next = base; +	base = this; +} + +void LexerModule::Colourise(unsigned int startPos, int lengthDoc, int initStyle, +		int language, WordList *keywordlists[], StylingContext &styler) { +	LexerModule *lm = base; +	while (lm) { +		if (lm->language == language) { +			lm->fn(startPos, lengthDoc, initStyle, keywordlists, styler); +			return; +		} +		lm = lm->next; +	} +	// Unknown language +	// Null language means all style bytes are 0 so just mark the end - no need to fill in. +	if (lengthDoc > 0) { +		styler.StartAt(startPos + lengthDoc - 1); +		styler.StartSegment(startPos + lengthDoc - 1); +		styler.ColourTo(startPos + lengthDoc - 1, 0); +	} +} | 
