#3 Lexer's WordList problem in 0.9.6

closed-fixed
nobody
None
5
2006-11-23
2006-02-05
No

I caught following probrem in SilverCity-0.9.6.

>>> from StringIO import StringIO
>>> out = StringIO()
>>> from SilverCity import LanguageInfo
>>> pgen =
LanguageInfo.find_generator_by_name('python')()
>>> pgen.generate_html(out,'import test')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File
"/usr/local/lib/python2.4/site-packages/SilverCity/Python.py",
line 60, in generate_html
lexer.tokenize_by_style(buffer, self.event_handler)
File
"/usr/local/lib/python2.4/site-packages/SilverCity/Lexer.py",
line 8, in tokenize_by_style
call_back
TypeError: expected sequence of 2 WordLists (1 provided)

New scintilla's LexPython.cxx has new WordList element
"Highlighted identifiers" at line 442. Then, I modify
PySilverCity/SilverCity/Python.py(13-15):

self._keyword_lists = [
WordList(Keywords.python_keywords),
WordList(),
]

Also in CSS.py and SQL.py, the same problems are.

Discussion

  • Brian Quinlan
    Brian Quinlan
    2006-11-23

    Logged In: YES
    user_id=108973
    Originator: NO

    Fixed in 0.97

     
  • Brian Quinlan
    Brian Quinlan
    2006-11-23

    • status: open --> closed-fixed
     
  • <h1>Strom.Manchester Janeiro antenna polish?parishioner: </h1>