Logo Search packages:      
Sourcecode: wxwindows2.4 version File versions  Download package

LexPython.cxx File Reference

Detailed Description

Lexer for Python.

Definition in file LexPython.cxx.

#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 "StyleContext.h"
#include "KeyWords.h"
#include "Scintilla.h"
#include "SciLexer.h"

Go to the source code of this file.


enum  kwType { kwOther, kwClass, kwDef, kwImport }


static void ColourisePyDoc (unsigned int startPos, int length, int initStyle, WordList *keywordlists[], Accessor &styler)
static void FoldPyDoc (unsigned int startPos, int length, int, WordList *[], Accessor &styler)
static int GetPyStringState (Accessor &styler, int i, unsigned int *nextIndex)
static bool IsAWordChar (int ch)
static bool IsAWordStart (int ch)
static bool IsCommentLine (int line, Accessor &styler)
static bool IsPyComment (Accessor &styler, int pos, int len)
static bool IsPyStringStart (int ch, int chNext, int chNext2)
static bool IsQuoteLine (int line, Accessor &styler)


LexerModule lmPython (SCLEX_PYTHON, ColourisePyDoc,"python", FoldPyDoc, pythonWordListDesc)
static const char *const pythonWordListDesc []

Generated by  Doxygen 1.6.0   Back to index