diff options
author | nyamatongwe <unknown> | 2009-03-04 09:26:17 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-03-04 09:26:17 +0000 |
commit | 54839739a3ef8dcab69b9b2f27b800a113eeb381 (patch) | |
tree | 841947e3c52bd6fc587c94198abfab7b9aab8246 | |
parent | 04c1a853872e6ca664e9720da7cb4180c023184e (diff) | |
download | scintilla-mirror-54839739a3ef8dcab69b9b2f27b800a113eeb381.tar.gz |
Nimrod lexer from Andreas Rumpf added.
-rw-r--r-- | gtk/makefile | 10 | ||||
-rw-r--r-- | gtk/scintilla.mak | 3 | ||||
-rw-r--r-- | include/SciLexer.h | 1 | ||||
-rw-r--r-- | include/Scintilla.iface | 2 | ||||
-rw-r--r-- | macosx/makefile | 10 | ||||
-rw-r--r-- | src/KeyWords.cxx | 1 | ||||
-rw-r--r-- | src/LexNimrod.cxx | 426 | ||||
-rw-r--r-- | vcbuild/SciLexer.dsp | 4 | ||||
-rw-r--r-- | win32/makefile | 10 | ||||
-rw-r--r-- | win32/scintilla.mak | 3 | ||||
-rw-r--r-- | win32/scintilla_vc6.mak | 3 |
11 files changed, 458 insertions, 15 deletions
diff --git a/gtk/makefile b/gtk/makefile index f6fde6c66..a22250976 100644 --- a/gtk/makefile +++ b/gtk/makefile @@ -69,11 +69,11 @@ LexCOBOL.o LexConf.o LexCPP.o LexCrontab.o LexCsound.o LexCSS.o LexD.o \ LexEiffel.o LexErlang.o LexEScript.o LexFlagship.o LexForth.o LexFortran.o \ LexGAP.o LexGui4Cli.o LexHaskell.o LexHTML.o LexInno.o LexKix.o LexLisp.o \ LexLout.o LexLua.o LexMagik.o LexMatlab.o LexMetapost.o LexMMIXAL.o LexMPT.o \ -LexMSSQL.o LexMySQL.o LexNsis.o LexOpal.o LexOthers.o LexPascal.o LexPB.o \ -LexPerl.o LexPLM.o LexPOV.o LexPowerPro.o LexPowerShell.o LexProgress.o \ -LexPS.o LexPython.o LexR.o LexRebol.o LexRuby.o LexScriptol.o LexSmalltalk.o \ -LexSorcus.o LexSpecman.o LexSpice.o LexSQL.o LexTACL.o LexTADS3.o LexTAL.o \ -LexTCL.o LexTeX.o LexVB.o LexVerilog.o LexVHDL.o LexYAML.o +LexMSSQL.o LexMySQL.o LexNimrod.o LexNsis.o LexOpal.o LexOthers.o LexPascal.o \ +LexPB.o LexPerl.o LexPLM.o LexPOV.o LexPowerPro.o LexPowerShell.o \ +LexProgress.o LexPS.o LexPython.o LexR.o LexRebol.o LexRuby.o LexScriptol.o \ +LexSmalltalk.o LexSorcus.o LexSpecman.o LexSpice.o LexSQL.o LexTACL.o \ +LexTADS3.o LexTAL.o LexTCL.o LexTeX.o LexVB.o LexVerilog.o LexVHDL.o LexYAML.o #--Autogenerated -- end of automatically generated section all: $(COMPLIB) diff --git a/gtk/scintilla.mak b/gtk/scintilla.mak index 537a2a503..88d795502 100644 --- a/gtk/scintilla.mak +++ b/gtk/scintilla.mak @@ -187,6 +187,7 @@ LEXOBJS=\ $(DIR_O)\LexMPT.obj \ $(DIR_O)\LexMSSQL.obj \ $(DIR_O)\LexMySQL.obj \ + $(DIR_O)\LexNimrod.obj \ $(DIR_O)\LexNsis.obj \ $(DIR_O)\LexOpal.obj \ $(DIR_O)\LexOthers.obj \ @@ -448,6 +449,8 @@ $(DIR_O)\LexMSSQL.obj: ..\src\LexMSSQL.cxx $(LEX_HEADERS) $(DIR_O)\LexMySQL.obj: ..\src\LexMySQL.cxx $(LEX_HEADERS) +$(DIR_O)\LexNimrod.obj: ..\src\LexNimrod.cxx $(LEX_HEADERS) + $(DIR_O)\LexNsis.obj: ..\src\LexNsis.cxx $(LEX_HEADERS) $(DIR_O)\LexOpal.obj: ..\src\LexOpal.cxx $(LEX_HEADERS) diff --git a/include/SciLexer.h b/include/SciLexer.h index e9101658f..3a06b0d5a 100644 --- a/include/SciLexer.h +++ b/include/SciLexer.h @@ -108,6 +108,7 @@ #define SCLEX_TACL 93 #define SCLEX_SORCUS 94 #define SCLEX_POWERPRO 95 +#define SCLEX_NIMROD 96 #define SCLEX_AUTOMATIC 1000 #define SCE_P_DEFAULT 0 #define SCE_P_COMMENTLINE 1 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 21e3d719e..638cb7700 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -2020,12 +2020,14 @@ val SCLEX_COBOL=92 val SCLEX_TACL=93 val SCLEX_SORCUS=94 val SCLEX_POWERPRO=95 +val SCLEX_NIMROD=96 # When a lexer specifies its language as SCLEX_AUTOMATIC it receives a # value assigned in sequence from SCLEX_AUTOMATIC+1. val SCLEX_AUTOMATIC=1000 # Lexical states for SCLEX_PYTHON lex Python=SCLEX_PYTHON SCE_P_ +lex Nimrod=SCLEX_NIMROD SCE_P_ val SCE_P_DEFAULT=0 val SCE_P_COMMENTLINE=1 val SCE_P_NUMBER=2 diff --git a/macosx/makefile b/macosx/makefile index 342021ba8..2c9d13282 100644 --- a/macosx/makefile +++ b/macosx/makefile @@ -69,11 +69,11 @@ LexCOBOL.o LexConf.o LexCPP.o LexCrontab.o LexCsound.o LexCSS.o LexD.o \ LexEiffel.o LexErlang.o LexEScript.o LexFlagship.o LexForth.o LexFortran.o \ LexGAP.o LexGui4Cli.o LexHaskell.o LexHTML.o LexInno.o LexKix.o LexLisp.o \ LexLout.o LexLua.o LexMagik.o LexMatlab.o LexMetapost.o LexMMIXAL.o LexMPT.o \ -LexMSSQL.o LexMySQL.o LexNsis.o LexOpal.o LexOthers.o LexPascal.o LexPB.o \ -LexPerl.o LexPLM.o LexPOV.o LexPowerPro.o LexPowerShell.o LexProgress.o \ -LexPS.o LexPython.o LexR.o LexRebol.o LexRuby.o LexScriptol.o LexSmalltalk.o \ -LexSorcus.o LexSpecman.o LexSpice.o LexSQL.o LexTACL.o LexTADS3.o LexTAL.o \ -LexTCL.o LexTeX.o LexVB.o LexVerilog.o LexVHDL.o LexYAML.o +LexMSSQL.o LexMySQL.o LexNimrod.o LexNsis.o LexOpal.o LexOthers.o LexPascal.o \ +LexPB.o LexPerl.o LexPLM.o LexPOV.o LexPowerPro.o LexPowerShell.o \ +LexProgress.o LexPS.o LexPython.o LexR.o LexRebol.o LexRuby.o LexScriptol.o \ +LexSmalltalk.o LexSorcus.o LexSpecman.o LexSpice.o LexSQL.o LexTACL.o \ +LexTADS3.o LexTAL.o LexTCL.o LexTeX.o LexVB.o LexVerilog.o LexVHDL.o LexYAML.o #--Autogenerated -- end of automatically generated section # The LEXOBJS have to be treated specially as the functions in them are not called from external code diff --git a/src/KeyWords.cxx b/src/KeyWords.cxx index d5d7499df..5c8b1625f 100644 --- a/src/KeyWords.cxx +++ b/src/KeyWords.cxx @@ -195,6 +195,7 @@ int Scintilla_LinkLexers() { LINK_LEXER(lmMMIXAL); LINK_LEXER(lmMSSQL); LINK_LEXER(lmMySQL); + LINK_LEXER(lmNimrod); LINK_LEXER(lmNncrontab); LINK_LEXER(lmNsis); LINK_LEXER(lmNull); diff --git a/src/LexNimrod.cxx b/src/LexNimrod.cxx new file mode 100644 index 000000000..fc8d05f0b --- /dev/null +++ b/src/LexNimrod.cxx @@ -0,0 +1,426 @@ +// Scintilla source code edit control +// Nimrod lexer +// (c) 2009 Andreas Rumpf +/** @file LexNimrod.cxx + ** Lexer for Nimrod. + **/ +// Copyright 1998-2002 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 "StyleContext.h" +#include "KeyWords.h" +#include "Scintilla.h" +#include "SciLexer.h" + +static inline bool IsAWordChar(int ch) { + return (ch >= 0x80) || isalnum(ch) || ch == '_'; +} + +static int tillEndOfTripleQuote(Accessor &styler, int pos, int max) { + /* search for """ */ + for (;;) { + if (styler.SafeGetCharAt(pos, '\0') == '\0') return pos; + if (pos >= max) return pos; + if (styler.Match(pos, "\"\"\"")) { + return pos + 2; + } + pos++; + } +} + +#define CR 13 /* use both because Scite allows changing the line ending */ +#define LF 10 + +static bool inline isNewLine(int ch) { + return ch == CR || ch == LF; +} + +static int scanString(Accessor &styler, int pos, int max, bool rawMode) { + for (;;) { + if (pos >= max) return pos; + char ch = styler.SafeGetCharAt(pos, '\0'); + if (ch == CR || ch == LF || ch == '\0') return pos; + if (ch == '"') return pos; + if (ch == '\\' && !rawMode) { + pos += 2; + } else { + pos++; + } + } +} + +static int scanChar(Accessor &styler, int pos, int max) { + for (;;) { + if (pos >= max) return pos; + char ch = styler.SafeGetCharAt(pos, '\0'); + if (ch == CR || ch == LF || ch == '\0') return pos; + if (ch == '\'' && !isalnum(styler.SafeGetCharAt(pos+1, '\0')) ) + return pos; + if (ch == '\\') { + pos += 2; + } else { + pos++; + } + } +} + +static int scanIdent(Accessor &styler, int pos, WordList &keywords) { + char buf[100]; /* copy to lowercase and ignore underscores */ + int i = 0; + + for (;;) { + char ch = styler.SafeGetCharAt(pos, '\0'); + if (!IsAWordChar(ch)) break; + if (ch != '_' && i < ((int)sizeof(buf))-1) { + buf[i] = static_cast<char>(tolower(ch)); + i++; + } + pos++; + } + buf[i] = '\0'; + /* look for keyword */ + if (keywords.InList(buf)) { + styler.ColourTo(pos-1, SCE_P_WORD); + } else { + styler.ColourTo(pos-1, SCE_P_IDENTIFIER); + } + return pos; +} + +static int scanNumber(Accessor &styler, int pos) { + char ch, ch2; + ch = styler.SafeGetCharAt(pos, '\0'); + ch2 = styler.SafeGetCharAt(pos+1, '\0'); + if (ch == '0' && (ch2 == 'b' || ch2 == 'B')) { + /* binary number: */ + pos += 2; + for (;;) { + ch = styler.SafeGetCharAt(pos, '\0'); + if (ch == '_' || (ch >= '0' && ch <= '1')) ++pos; + else break; + } + } else if (ch == '0' && + (ch2 == 'o' || ch2 == 'O' || ch2 == 'c' || ch2 == 'C')) { + /* octal number: */ + pos += 2; + for (;;) { + ch = styler.SafeGetCharAt(pos, '\0'); + if (ch == '_' || (ch >= '0' && ch <= '7')) ++pos; + else break; + } + } else if (ch == '0' && (ch2 == 'x' || ch2 == 'X')) { + /* hexadecimal number: */ + pos += 2; + for (;;) { + ch = styler.SafeGetCharAt(pos, '\0'); + if (ch == '_' || (ch >= '0' && ch <= '9') + || (ch >= 'a' && ch <= 'f') + || (ch >= 'A' && ch <= 'F')) ++pos; + else break; + } + } else { + // skip decimal part: + for (;;) { + ch = styler.SafeGetCharAt(pos, '\0'); + if (ch == '_' || (ch >= '0' && ch <= '9')) ++pos; + else break; + } + ch2 = styler.SafeGetCharAt(pos+1, '\0'); + if (ch == '.' && ch2 >= '0' && ch2 <= '9') { + ++pos; // skip '.' + for (;;) { + ch = styler.SafeGetCharAt(pos, '\0'); + if (ch == '_' || (ch >= '0' && ch <= '9')) ++pos; + else break; + } + } + if (ch == 'e' || ch == 'E') { + ++pos; + ch = styler.SafeGetCharAt(pos, '\0'); + if (ch == '-' || ch == '+') ++pos; + for (;;) { + ch = styler.SafeGetCharAt(pos, '\0'); + if (ch == '_' || (ch >= '0' && ch <= '9')) ++pos; + else break; + } + } + } + if (ch == '\'') { + /* a type suffix: */ + pos++; + for (;;) { + ch = styler.SafeGetCharAt(pos); + if ((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'Z') + || (ch >= 'a' && ch <= 'z') || ch == '_') ++pos; + else break; + } + } + styler.ColourTo(pos-1, SCE_P_NUMBER); + return pos; +} + +/* rewritten from scratch, because I couldn't get rid of the bugs... + (A character based approach sucks!) +*/ +static void ColouriseNimrodDoc(unsigned int startPos, int length, int initStyle, + WordList *keywordlists[], Accessor &styler) { + int pos = startPos; + int max = startPos + length; + char ch; + WordList &keywords = *keywordlists[0]; + + styler.StartAt(startPos); + styler.StartSegment(startPos); + + switch (initStyle) { + /* check where we are: */ + case SCE_P_TRIPLEDOUBLE: + pos = tillEndOfTripleQuote(styler, pos, max); + styler.ColourTo(pos, SCE_P_TRIPLEDOUBLE); + pos++; + break; + default: /* nothing to do: */ + break; + } + while (pos < max) { + ch = styler.SafeGetCharAt(pos, '\0'); + switch (ch) { + case '\0': return; + case '#': { + bool doccomment = (styler.SafeGetCharAt(pos+1) == '#'); + while (pos < max && !isNewLine(styler.SafeGetCharAt(pos, LF))) pos++; + if (doccomment) + styler.ColourTo(pos, SCE_C_COMMENTLINEDOC); + else + styler.ColourTo(pos, SCE_P_COMMENTLINE); + } break; + case 'r': case 'R': { + if (styler.SafeGetCharAt(pos+1) == '"') { + pos = scanString(styler, pos+2, max, true); + styler.ColourTo(pos, SCE_P_STRING); + pos++; + } else { + pos = scanIdent(styler, pos, keywords); + } + } break; + case '"': + if (styler.Match(pos+1, "\"\"")) { + pos = tillEndOfTripleQuote(styler, pos+3, max); + styler.ColourTo(pos, SCE_P_TRIPLEDOUBLE); + } else { + pos = scanString(styler, pos+1, max, false); + styler.ColourTo(pos, SCE_P_STRING); + } + pos++; + break; + case '\'': + pos = scanChar(styler, pos+1, max); + styler.ColourTo(pos, SCE_P_CHARACTER); + pos++; + break; + default: // identifers, numbers, operators, whitespace + if (ch >= '0' && ch <= '9') { + pos = scanNumber(styler, pos); + } else if (IsAWordChar(ch)) { + pos = scanIdent(styler, pos, keywords); + } else if (ch == '`') { + pos++; + while (pos < max) { + ch = styler.SafeGetCharAt(pos, LF); + if (ch == '`') { + ++pos; + break; + } + if (ch == CR || ch == LF) break; + ++pos; + } + styler.ColourTo(pos, SCE_P_IDENTIFIER); + } else if (strchr("()[]{}:=;-\\/&%$!+<>|^?,.*~@", ch)) { + styler.ColourTo(pos, SCE_P_OPERATOR); + pos++; + } else { + styler.ColourTo(pos, SCE_P_DEFAULT); + pos++; + } + break; + } + } +} + +static bool IsCommentLine(int line, Accessor &styler) { + int pos = styler.LineStart(line); + int eol_pos = styler.LineStart(line + 1) - 1; + for (int i = pos; i < eol_pos; i++) { + char ch = styler[i]; + if (ch == '#') + return true; + else if (ch != ' ' && ch != '\t') + return false; + } + return false; +} + +static bool IsQuoteLine(int line, Accessor &styler) { + int style = styler.StyleAt(styler.LineStart(line)) & 31; + return ((style == SCE_P_TRIPLE) || (style == SCE_P_TRIPLEDOUBLE)); +} + + +static void FoldNimrodDoc(unsigned int startPos, int length, + int /*initStyle - unused*/, + WordList *[], Accessor &styler) { + const int maxPos = startPos + length; + const int maxLines = styler.GetLine(maxPos - 1); // Requested last line + const int docLines = styler.GetLine(styler.Length() - 1); // Available last line + const bool foldComment = styler.GetPropertyInt("fold.comment.nimrod") != 0; + const bool foldQuotes = styler.GetPropertyInt("fold.quotes.nimrod") != 0; + + // Backtrack to previous non-blank line so we can determine indent level + // for any white space lines (needed esp. within triple quoted strings) + // and so we can fix any preceding fold level (which is why we go back + // at least one line in all cases) + int spaceFlags = 0; + int lineCurrent = styler.GetLine(startPos); + int indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags, NULL); + while (lineCurrent > 0) { + lineCurrent--; + indentCurrent = styler.IndentAmount(lineCurrent, &spaceFlags, NULL); + if (!(indentCurrent & SC_FOLDLEVELWHITEFLAG) && + (!IsCommentLine(lineCurrent, styler)) && + (!IsQuoteLine(lineCurrent, styler))) + break; + } + int indentCurrentLevel = indentCurrent & SC_FOLDLEVELNUMBERMASK; + + // Set up initial loop state + startPos = styler.LineStart(lineCurrent); + int prev_state = SCE_P_DEFAULT & 31; + if (lineCurrent >= 1) + prev_state = styler.StyleAt(startPos - 1) & 31; + int prevQuote = foldQuotes && ((prev_state == SCE_P_TRIPLE) || + (prev_state == SCE_P_TRIPLEDOUBLE)); + int prevComment = 0; + if (lineCurrent >= 1) + prevComment = foldComment && IsCommentLine(lineCurrent - 1, styler); + + // Process all characters to end of requested range or end of any triple quote + // or comment that hangs over the end of the range. Cap processing in all cases + // to end of document (in case of unclosed quote or comment at end). + while ((lineCurrent <= docLines) && ((lineCurrent <= maxLines) || + prevQuote || prevComment)) { + + // Gather info + int lev = indentCurrent; + int lineNext = lineCurrent + 1; + int indentNext = indentCurrent; + int quote = false; + if (lineNext <= docLines) { + // Information about next line is only available if not at end of document + indentNext = styler.IndentAmount(lineNext, &spaceFlags, NULL); + int style = styler.StyleAt(styler.LineStart(lineNext)) & 31; + quote = foldQuotes && ((style == SCE_P_TRIPLE) || (style == SCE_P_TRIPLEDOUBLE)); + } + const int quote_start = (quote && !prevQuote); + const int quote_continue = (quote && prevQuote); + const int comment = foldComment && IsCommentLine(lineCurrent, styler); + const int comment_start = (comment && !prevComment && (lineNext <= docLines) && + IsCommentLine(lineNext, styler) && + (lev > SC_FOLDLEVELBASE)); + const int comment_continue = (comment && prevComment); + if ((!quote || !prevQuote) && !comment) + indentCurrentLevel = indentCurrent & SC_FOLDLEVELNUMBERMASK; + if (quote) + indentNext = indentCurrentLevel; + if (indentNext & SC_FOLDLEVELWHITEFLAG) + indentNext = SC_FOLDLEVELWHITEFLAG | indentCurrentLevel; + + if (quote_start) { + // Place fold point at start of triple quoted string + lev |= SC_FOLDLEVELHEADERFLAG; + } else if (quote_continue || prevQuote) { + // Add level to rest of lines in the string + lev = lev + 1; + } else if (comment_start) { + // Place fold point at start of a block of comments + lev |= SC_FOLDLEVELHEADERFLAG; + } else if (comment_continue) { + // Add level to rest of lines in the block + lev = lev + 1; + } + + // Skip past any blank lines for next indent level info; we skip also + // comments (all comments, not just those starting in column 0) + // which effectively folds them into surrounding code rather + // than screwing up folding. + + while (!quote && + (lineNext < docLines) && + ((indentNext & SC_FOLDLEVELWHITEFLAG) || + (lineNext <= docLines && IsCommentLine(lineNext, styler)))) { + + lineNext++; + indentNext = styler.IndentAmount(lineNext, &spaceFlags, NULL); + } + + const int levelAfterComments = indentNext & SC_FOLDLEVELNUMBERMASK; + const int levelBeforeComments = + Platform::Maximum(indentCurrentLevel,levelAfterComments); + + // Now set all the indent levels on the lines we skipped + // Do this from end to start. Once we encounter one line + // which is indented more than the line after the end of + // the comment-block, use the level of the block before + + int skipLine = lineNext; + int skipLevel = levelAfterComments; + + while (--skipLine > lineCurrent) { + int skipLineIndent = styler.IndentAmount(skipLine, &spaceFlags, NULL); + + if ((skipLineIndent & SC_FOLDLEVELNUMBERMASK) > levelAfterComments) + skipLevel = levelBeforeComments; + + int whiteFlag = skipLineIndent & SC_FOLDLEVELWHITEFLAG; + + styler.SetLevel(skipLine, skipLevel | whiteFlag); + } + + // Set fold header on non-quote/non-comment line + if (!quote && !comment && !(indentCurrent & SC_FOLDLEVELWHITEFLAG) ) { + if ((indentCurrent & SC_FOLDLEVELNUMBERMASK) < + (indentNext & SC_FOLDLEVELNUMBERMASK)) + lev |= SC_FOLDLEVELHEADERFLAG; + } + + // Keep track of triple quote and block comment state of previous line + prevQuote = quote; + prevComment = comment_start || comment_continue; + + // Set fold level for this line and move to next line + styler.SetLevel(lineCurrent, lev); + indentCurrent = indentNext; + lineCurrent = lineNext; + } + + // NOTE: Cannot set level of last line here because indentCurrent doesn't have + // header flag set; the loop above is crafted to take care of this case! + //styler.SetLevel(lineCurrent, indentCurrent); +} + +static const char * const nimrodWordListDesc[] = { + "Keywords", + 0 +}; + +LexerModule lmNimrod(SCLEX_NIMROD, ColouriseNimrodDoc, "nimrod", FoldNimrodDoc, + nimrodWordListDesc); diff --git a/vcbuild/SciLexer.dsp b/vcbuild/SciLexer.dsp index 2d21a9e27..7e0de8a66 100644 --- a/vcbuild/SciLexer.dsp +++ b/vcbuild/SciLexer.dsp @@ -322,6 +322,10 @@ SOURCE=..\src\LexMySQL.cxx # End Source File # Begin Source File +SOURCE=..\src\LexNimrod.cxx +# End Source File +# Begin Source File + SOURCE=..\src\LexNsis.cxx # End Source File # Begin Source File diff --git a/win32/makefile b/win32/makefile index d0f2eec4f..697b3cdc5 100644 --- a/win32/makefile +++ b/win32/makefile @@ -57,11 +57,11 @@ LexCOBOL.o LexConf.o LexCPP.o LexCrontab.o LexCsound.o LexCSS.o LexD.o \ LexEiffel.o LexErlang.o LexEScript.o LexFlagship.o LexForth.o LexFortran.o \ LexGAP.o LexGui4Cli.o LexHaskell.o LexHTML.o LexInno.o LexKix.o LexLisp.o \ LexLout.o LexLua.o LexMagik.o LexMatlab.o LexMetapost.o LexMMIXAL.o LexMPT.o \ -LexMSSQL.o LexMySQL.o LexNsis.o LexOpal.o LexOthers.o LexPascal.o LexPB.o \ -LexPerl.o LexPLM.o LexPOV.o LexPowerPro.o LexPowerShell.o LexProgress.o \ -LexPS.o LexPython.o LexR.o LexRebol.o LexRuby.o LexScriptol.o LexSmalltalk.o \ -LexSorcus.o LexSpecman.o LexSpice.o LexSQL.o LexTACL.o LexTADS3.o LexTAL.o \ -LexTCL.o LexTeX.o LexVB.o LexVerilog.o LexVHDL.o LexYAML.o +LexMSSQL.o LexMySQL.o LexNimrod.o LexNsis.o LexOpal.o LexOthers.o LexPascal.o \ +LexPB.o LexPerl.o LexPLM.o LexPOV.o LexPowerPro.o LexPowerShell.o \ +LexProgress.o LexPS.o LexPython.o LexR.o LexRebol.o LexRuby.o LexScriptol.o \ +LexSmalltalk.o LexSorcus.o LexSpecman.o LexSpice.o LexSQL.o LexTACL.o \ +LexTADS3.o LexTAL.o LexTCL.o LexTeX.o LexVB.o LexVerilog.o LexVHDL.o LexYAML.o #--Autogenerated -- end of automatically generated section SOBJS = ScintillaWin.o ScintillaBase.o Editor.o CharClassify.o Decoration.o \ diff --git a/win32/scintilla.mak b/win32/scintilla.mak index 2dad3609e..7f4831452 100644 --- a/win32/scintilla.mak +++ b/win32/scintilla.mak @@ -157,6 +157,7 @@ LEXOBJS=\ $(DIR_O)\LexMPT.obj \ $(DIR_O)\LexMSSQL.obj \ $(DIR_O)\LexMySQL.obj \ + $(DIR_O)\LexNimrod.obj \ $(DIR_O)\LexNsis.obj \ $(DIR_O)\LexOpal.obj \ $(DIR_O)\LexOthers.obj \ @@ -399,6 +400,8 @@ $(DIR_O)\LexMSSQL.obj: ..\src\LexMSSQL.cxx $(LEX_HEADERS) $(DIR_O)\LexMySQL.obj: ..\src\LexMySQL.cxx $(LEX_HEADERS) +$(DIR_O)\LexNimrod.obj: ..\src\LexNimrod.cxx $(LEX_HEADERS) + $(DIR_O)\LexNsis.obj: ..\src\LexNsis.cxx $(LEX_HEADERS) $(DIR_O)\LexOpal.obj: ..\src\LexOpal.cxx $(LEX_HEADERS) diff --git a/win32/scintilla_vc6.mak b/win32/scintilla_vc6.mak index 8c6e55f90..29aba7347 100644 --- a/win32/scintilla_vc6.mak +++ b/win32/scintilla_vc6.mak @@ -159,6 +159,7 @@ LEXOBJS=\ $(DIR_O)\LexMPT.obj \ $(DIR_O)\LexMSSQL.obj \ $(DIR_O)\LexMySQL.obj \ + $(DIR_O)\LexNimrod.obj \ $(DIR_O)\LexNsis.obj \ $(DIR_O)\LexOpal.obj \ $(DIR_O)\LexOthers.obj \ @@ -401,6 +402,8 @@ $(DIR_O)\LexMSSQL.obj: ..\src\LexMSSQL.cxx $(LEX_HEADERS) $(DIR_O)\LexMySQL.obj: ..\src\LexMySQL.cxx $(LEX_HEADERS) +$(DIR_O)\LexNimrod.obj: ..\src\LexNimrod.cxx $(LEX_HEADERS) + $(DIR_O)\LexNsis.obj: ..\src\LexNsis.cxx $(LEX_HEADERS) $(DIR_O)\LexOpal.obj: ..\src\LexOpal.cxx $(LEX_HEADERS) |