#1130 Visual Prolog properties and lexer update

Completed
closed
5
2016-01-18
2015-12-21
No

Hi,

Thomas Linder Puls updated the Visual Prolog lexer, and I have made a corresponding SciTE .properties file.
The changes to the lexer are (1) better detection of numbers, and (2) removed 3 unused states.

I have attached sources. The sources should match the current repository state (based on 5786 888872b96b9d+ tip).

The relevant changes in scintilla.iface are as follows:

val SCE_VISUALPROLOG_DEFAULT=0
val SCE_VISUALPROLOG_KEY_MAJOR=1
val SCE_VISUALPROLOG_KEY_MINOR=2
val SCE_VISUALPROLOG_KEY_DIRECTIVE=3
val SCE_VISUALPROLOG_COMMENT_BLOCK=4
val SCE_VISUALPROLOG_COMMENT_LINE=5
val SCE_VISUALPROLOG_COMMENT_KEY=6
val SCE_VISUALPROLOG_COMMENT_KEY_ERROR=7
val SCE_VISUALPROLOG_IDENTIFIER=8
val SCE_VISUALPROLOG_VARIABLE=9
val SCE_VISUALPROLOG_ANONYMOUS=10
val SCE_VISUALPROLOG_NUMBER=11
val SCE_VISUALPROLOG_OPERATOR=12
val SCE_VISUALPROLOG_STRING=13
val SCE_VISUALPROLOG_STRING_ESCAPE=14
val SCE_VISUALPROLOG_STRING_ESCAPE_ERROR=15
val SCE_VISUALPROLOG_STRING_EOL_OPEN=16
val SCE_VISUALPROLOG_STRING_VERBATIM=17
val SCE_VISUALPROLOG_STRING_VERBATIM_SPECIAL=18
val SCE_VISUALPROLOG_STRING_VERBATIM_EOL=19

Best Regards,
Lars

3 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2015-12-21

    Styles are not normally renumbered. There appears no benefit to filling in holes and there is a cost to existing code and settings that used the previous values.

    There are many doubled style settings such as style.visualprolog.1 but no explanation. The later values override the earlier making the earlier values pointless.

     
  • Neil Hodgson

    Neil Hodgson - 2016-01-09

    Modified LexVisualProlog.cxx committed as [b7f3c4].

     

    Related

    Commit: [b7f3c4]

  • Neil Hodgson

    Neil Hodgson - 2016-01-09
    • labels: --> scintilla, lexer, visual prolog
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson

    Neil Hodgson - 2016-01-18
    • status: open --> closed
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks