~ubuntu-branches/ubuntu/raring/wxwidgets2.8/raring

« back to all changes in this revision

Viewing changes to wxPython/wx/tools/Editra/src/syntax/syndata.py

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2012-01-07 13:59:25 UTC
  • mfrom: (1.1.9) (5.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20120107135925-2601miy9ullcon9j
Tags: 2.8.12.1-6ubuntu1
* Resync from Debian, changes that were kept:
  - debian/rules: re-enable mediactrl. This allows libwx_gtk2u_media-2.8 to be
    built, as this is required by some applications (LP: #632984)
  - debian/control: Build-dep on libxt-dev for mediactrl.
  - Patches
    + fix-bashism-in-example
* Add conflict on python-wxgtk2.8 (<< 2.8.12.1-6ubuntu1~) to python-wxversion
  to guarantee upgrade ordering when moving from pycentral to dh_python2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
"""
15
15
 
16
16
__author__ = "Cody Precord <cprecord@editra.org>"
17
 
__svnid__ = "$Id: syndata.py 63843 2010-04-03 16:19:09Z CJP $"
18
 
__revision__ = "$Revision: 63843 $"
 
17
__svnid__ = "$Id: syndata.py 67392 2011-04-04 21:06:43Z CJP $"
 
18
__revision__ = "$Revision: 67392 $"
19
19
 
20
20
__all__ = ['SyntaxDataBase',]
21
21
 
22
22
#-----------------------------------------------------------------------------#
23
23
# Imports
 
24
import collections
24
25
import wx.stc as stc
25
26
 
26
27
# Local Imports
102
103
    def GetSyntaxSpec(self):
103
104
        """Get the the syntax specification list
104
105
        @return: list of tuples [(int, 'style_tag'),]
 
106
        @note: required override for subclasses
105
107
 
106
108
        """
107
109
        raise NotImplementedError
122
124
        @param funct: callable
123
125
 
124
126
        """
125
 
        assert callable(funct), "funct must be callable object"
 
127
        assert isinstance(funct, collections.Callable), "funct must be callable object"
126
128
        self._features[name] = funct
127
129
 
128
130
    def SetLexer(self, lex):