#959 Structured Text lexer support.

Completed
closed
4
2014-08-05
2012-10-15
Pavel
No

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 ?

Discussion

  • Pavel

    Pavel - 2012-10-15

    FIles

     
    Attachments
  • Neil Hodgson

    Neil Hodgson - 2012-10-16
    • assigned_to: nobody --> nyamatongwe
     
  • Neil Hodgson

    Neil Hodgson - 2012-10-16

    I won't be looking at this until next year.

     
  • Neil Hodgson

    Neil Hodgson - 2012-12-30

    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.

     
  • Neil Hodgson

    Neil Hodgson - 2012-12-30
    • priority: 5 --> 4
     
  • Pavel

    Pavel - 2013-04-19

    Sorry!
    Chacked with scintiila331 ver.

     
    Attachments
    • Neil Hodgson

      Neil Hodgson - 2013-04-19

      C:\u\hg\scintilla\lexers\LexSTTXT.cxx:306 Summary: Same expression on both sides of '||'.

       
      • Pavel

        Pavel - 2013-04-19

        Error during compilation? If yes, what compiler do you use ?

         
        • Neil Hodgson

          Neil Hodgson - 2013-04-19

          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.

           
  • Pavel

    Pavel - 2013-04-30

    Updated, added copyrights info & renamed. See attachment.

     
    Attachments
    • Neil Hodgson

      Neil Hodgson - 2013-05-01

      Why are there are still two checks of "END_STEP"?

       
  • Pavel

    Pavel - 2013-05-20

    Strange, but it is, checked previous attached files with Visual Studio 12, Visual C++ 11 version, no warnings.....

     
    Attachments
  • Neil Hodgson

    Neil Hodgson - 2013-05-23
    • labels: Scintilla --> Scintilla, lexer
    • Group: --> Completed
     
  • Neil Hodgson

    Neil Hodgson - 2013-05-23

    Committed as [2aad87].

     

    Related

    Commit: [2aad87]

  • Neil Hodgson

    Neil Hodgson - 2013-06-02
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks