~ubuntu-branches/ubuntu/karmic/eric/karmic

« back to all changes in this revision

Viewing changes to eric/QScintilla/LexerIDL.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2008-01-28 18:02:25 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080128180225-6nrox6yrworh2c4v
Tags: 4.0.4-1ubuntu1
* Add python-qt3 to build-depends becuase that's where Ubuntu puts 
  pyqtconfig
* Change maintainer to MOTU

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- coding: utf-8 -*-
2
 
 
3
 
# Copyright (c) 2002 - 2007 Detlev Offenbach <detlev@die-offenbachs.de>
4
 
#
5
 
 
6
 
"""
7
 
Module implementing an IDL lexer with some additional methods.
8
 
"""
9
 
 
10
 
from qtext import QextScintillaLexerIDL
11
 
from qt import *
12
 
 
13
 
from Lexer import Lexer
14
 
 
15
 
class LexerIDL(QextScintillaLexerIDL, Lexer):
16
 
    """ 
17
 
    Subclass to implement some additional lexer dependant methods.
18
 
    """
19
 
    def __init__(self, parent=None, name=None):
20
 
        """
21
 
        Constructor
22
 
        
23
 
        @param parent parent widget of this lexer
24
 
        @param name name of this lexer
25
 
        """
26
 
        QextScintillaLexerIDL.__init__(self, parent, name)
27
 
        Lexer.__init__(self)
28
 
        
29
 
        self.commentString = QString("//~ ")
30
 
        self.streamCommentString = {
31
 
            'start' : QString('/* '),
32
 
            'end'   : QString(' */')
33
 
        }
34
 
        self.boxCommentString = {
35
 
            'start'  : QString('/* '),
36
 
            'middle' : QString(' * '),
37
 
            'end'    : QString(' */')
38
 
        }