#1071 Add BibTeX lexer

Committed
closed
5
2014-09-30
2014-08-28
danselmi
No

Is it possible to integrate the lexer from here
http://sourceforge.net/p/texniccenter/code/ci/default/tree/Scintilla/lexers/LexBibTeX.cxx
into scintilla?

Discussion

  • Neil Hodgson

    Neil Hodgson - 2014-08-28

    Does the author of the lexer want it integrated?

    The lexer contains a list of known entries that would be better implemented using Scintilla's keyword mechanism since that allows updating the list without recompiling.

    There's some use of is* that may be unsafe outside ASCII and there may be other issues that should be addressed.

     
  • danselmi

    danselmi - 2014-08-31

    Yes, the author would like it to be integrated.

     
    • Neil Hodgson

      Neil Hodgson - 2014-09-01

      Will someone be fixing issues such as those mentioned earlier?

      If you want to do so then please attach a copy that protects calls of isalnum, isalpha, etc with IsASCII or similar. Also replace the hard-coded word list with keywords in a similar manner to other lexers.

       
      • danselmi

        danselmi - 2014-09-02

        Like this?

         
  • Neil Hodgson

    Neil Hodgson - 2014-09-03
    • labels: BibTeX lexer --> BibTeX lexer, scintilla
    • assigned_to: Neil Hodgson
    • Group: Completed --> Committed
     
  • Neil Hodgson

    Neil Hodgson - 2014-09-30
    • status: open --> closed
     

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

Sign up for the SourceForge newsletter:





No, thanks