diff options
author | nyamatongwe <unknown> | 2003-02-17 11:18:11 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-02-17 11:18:11 +0000 |
commit | bb028fe06a4e642aa20f72136c2deaf312ba61b9 (patch) | |
tree | 045f6c279f221341f136acd2d2cdd2e8db3a65f8 /src/LexLisp.cxx | |
parent | d9b3f2fe99e4bb7fb6649eee27382f25f20a4146 (diff) | |
download | scintilla-mirror-bb028fe06a4e642aa20f72136c2deaf312ba61b9.tar.gz |
Upgraded keyword list descriptions from Brian Quinlan.
Diffstat (limited to 'src/LexLisp.cxx')
-rw-r--r-- | src/LexLisp.cxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/LexLisp.cxx b/src/LexLisp.cxx index cb150ff76..9cd5433c8 100644 --- a/src/LexLisp.cxx +++ b/src/LexLisp.cxx @@ -98,7 +98,7 @@ static void ColouriseLispDoc(unsigned int startPos, int length, int initStyle, W if (isLispwordstart(ch)) { styler.ColourTo(i - 1, state); state = SCE_LISP_IDENTIFIER; - } + } else if (ch == ';') { styler.ColourTo(i - 1, state); state = SCE_LISP_COMMENT; @@ -107,7 +107,7 @@ static void ColouriseLispDoc(unsigned int startPos, int length, int initStyle, W styler.ColourTo(i - 1, state); styler.ColourTo(i, SCE_LISP_OPERATOR); } - + else if (ch == '\"') { state = SCE_LISP_STRING; } @@ -115,12 +115,12 @@ static void ColouriseLispDoc(unsigned int startPos, int length, int initStyle, W if (!isLispwordstart(ch)) { classifyWordLisp(styler.GetStartSegment(), i - 1, keywords, styler); state = SCE_LISP_DEFAULT; - } /*else*/ + } /*else*/ if (isLispoperator(ch) || ch=='\'') { styler.ColourTo(i - 1, state); styler.ColourTo(i, SCE_LISP_OPERATOR); } - + } else { if (state == SCE_LISP_COMMENT) { if (atEOL) { @@ -192,4 +192,9 @@ static void FoldLispDoc(unsigned int startPos, int length, int /* initStyle */, styler.SetLevel(lineCurrent, levelPrev | flagsNext); } -LexerModule lmLISP(SCLEX_LISP, ColouriseLispDoc, "lisp", FoldLispDoc); +static const char * const lispWordListDesc[] = { + "Keywords", + 0 +}; + +LexerModule lmLISP(SCLEX_LISP, ColouriseLispDoc, "lisp", FoldLispDoc, lispWordListDesc); |