aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexPerl.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-04-04 09:17:32 +0000
committernyamatongwe <devnull@localhost>2000-04-04 09:17:32 +0000
commit3032c371bd9231f097226869e80bf56543ae2cab (patch)
tree5438281b06996314dfc3c8250769b1604b413728 /src/LexPerl.cxx
parent943cf3a48da52953c1f2377d9e412ae81b79b5e0 (diff)
downloadscintilla-mirror-3032c371bd9231f097226869e80bf56543ae2cab.tar.gz
Split a Document based Accessor (DocumentAccessor) off from
the old accessor which is now called WindowAccessor. Accessor.h defines a common interface which is the type consumed by the lexers.
Diffstat (limited to 'src/LexPerl.cxx')
-rw-r--r--src/LexPerl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LexPerl.cxx b/src/LexPerl.cxx
index f9170b9c3..c52aa8c4f 100644
--- a/src/LexPerl.cxx
+++ b/src/LexPerl.cxx
@@ -31,7 +31,7 @@ inline bool isPerlOperator(char ch) {
return false;
}
-static int classifyWordPerl(unsigned int start, unsigned int end, WordList &keywords, StylingContext &styler) {
+static int classifyWordPerl(unsigned int start, unsigned int end, WordList &keywords, BufferAccess &styler) {
char s[100];
bool wordIsNumber = isdigit(styler[start]) || (styler[start] == '.');
for (unsigned int i = 0; i < end - start + 1 && i < 30; i++) {
@@ -54,7 +54,7 @@ static bool isEndVar(char ch) {
ch != '_' && ch != '\'';
}
-static bool isMatch(StylingContext &styler, int lengthDoc, int pos, const char *val) {
+static bool isMatch(BufferAccess &styler, int lengthDoc, int pos, const char *val) {
if ((pos + static_cast<int>(strlen(val))) >= lengthDoc) {
return false;
}
@@ -90,7 +90,7 @@ static char opposite(char ch) {
}
static void ColourisePerlDoc(unsigned int startPos, int length, int initStyle,
- WordList *keywordlists[], StylingContext &styler) {
+ WordList *keywordlists[], BufferAccess &styler) {
// Lexer for perl often has to backtrack to start of current style to determine
// which characters are being used as quotes, how deeply nested is the