Skip to content

Add scintilla constants #34

Open
Open

Description

@scriptum

scintilla_send_message accepts a magic number in first argument - message id but GeanyPy doesn't provide any human-readable constants for that. There are another issue with send_message (see #32).

It's easy to generate automatically: see https://github.com/gejzenbug/scintilla-python-constants

Activity

  1. elextr commented on Jul 21, 2015

    @elextr
    Collaborator

    The link above does not show the generator script but it would be easy to make one, note that it will have to be re-generated for each version of Scintilla since the Scintilla files are also autogenerated so you don't know what might change.

    Note also the link above is GPLv3 and Geanypy is GPLv2+.

  2. scriptum commented on Jul 21, 2015

    @scriptum
    Author

    sed -rn '/^#.*[0-9]$/s/#define\s(.*)\s/\1 = /p' SciLexer.h Scintilla.h

  3. elextr commented on Jul 21, 2015

    @elextr
    Collaborator

    @b4n, any thoughts on how this is kept in sync with each Scintilla update, can you push/PR this as part of the Scintilla update process?

  4. scriptum commented on Aug 16, 2015

    @scriptum
    Author

    how this is kept in sync with each Scintilla update

    Adding this simple line into makefile probably would solve the problem (automatically generated source).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions