Hi!
I\'ve implemented a new lexer for language Structured text. Details description, syntax and other necessary info you can find here - http://en.wikipedia.org/wiki/Structured_text
In attached there is a lexer source file, modified header "Scintilla.h" and modified file for processing Python compiler. I've checked this lexer with scintilla version 3.2.2. Is it possible to include this lexer into future releases of scintilla ?
FIles
I won't be looking at this until next year.
Fails to build:
..\lexers\LexSTTXT.cxx(155) : error C3861: 'ClassifyfcSTWord': identifier not found
..\lexers\LexSTTXT.cxx(184) : error C3861: 'ClassifyfcSTWord': identifier not found
..\lexers\LexSTTXT.cxx(379) : error C3861: 'ClassifyfcSTWordFoldPoint': identifier not found
In the Scintilla.iface file, there should be '=' between the symbol and value for 'val' lines.
Sorry!
Chacked with scintiila331 ver.
C:\u\hg\scintilla\lexers\LexSTTXT.cxx:306 Summary: Same expression on both sides of '||'.
Error during compilation? If yes, what compiler do you use ?
Its not an error: its a bug with a repeated expression probably showing that a case was missed.
I check with Visual C++. g++ and Clang. Also run cppcheck and the analyze commands of Visual C++ and Clang.
The file needs a header comment pointing to the License.txt similar to LexPython.cxx.
The name "fcST" does not produce any reasonable hits on Google so appears to be a poor choice.
Updated, added copyrights info & renamed. See attachment.
Why are there are still two checks of "END_STEP"?
Strange, but it is, checked previous attached files with Visual Studio 12, Visual C++ 11 version, no warnings.....
Committed as [2aad87].
Related
Commit: [2aad87]