Package Editra :: Package src :: Package syntax :: Module boo
[hide private]

Module boo

source code

FILE: boo.py


To Do: support for C style comment regions

Author: Cody Precord <cprecord@editra.org>

Functions [hide private]
 
Keywords(lang_id=0)
Returns Specified Keywords List
source code
 
SyntaxSpec(lang_id=0)
Syntax Specifications
source code
 
Properties(lang_id=0)
Returns a list of Extra Properties to set
source code
 
CommentPattern(lang_id=0)
Returns a list of characters used to comment a block of code
source code
 
KeywordString()
Returns the specified Keyword String
source code
Variables [hide private]
  __svnid__ = '$Id: boo.py 52852 2008-03-27 13:45:40Z CJP $'
  __revision__ = '$Revision: 52852 $'
  BOO_KW = (0, 'abstract and as AST break callable cast char cla...
  SYNTAX_ITEMS = [('STC_P_DEFAULT', 'default_style'), ('STC_P_CH...
  x = ('STC_P_WORD2', 'userkw_style')
Function Details [hide private]

Keywords(lang_id=0)

source code 

Returns Specified Keywords List

Parameters:
  • lang_id - used to select specific subset of keywords

SyntaxSpec(lang_id=0)

source code 

Syntax Specifications

Parameters:
  • lang_id - used for selecting a specific subset of syntax specs

Properties(lang_id=0)

source code 

Returns a list of Extra Properties to set

Parameters:
  • lang_id - used to select a specific set of properties

CommentPattern(lang_id=0)

source code 

Returns a list of characters used to comment a block of code

Parameters:
  • lang_id - used to select a specific subset of comment pattern(s)

KeywordString()

source code 

Returns the specified Keyword String

Note: not used by most modules


Variables Details [hide private]

BOO_KW

Value:
(0,
 'abstract and as AST break callable cast char class constructor conti\
nue def destructor do elif else ensure enum event except failure final\
 false for from get given goto if import in interface internal is isa \
not null of or otherwise override namespace partial pass private prote\
cted public raise ref retry return self set static super struct succes\
s transient true try typeof unless virtual when while yield')

SYNTAX_ITEMS

Value:
[('STC_P_DEFAULT', 'default_style'),
 ('STC_P_CHARACTER', 'char_style'),
 ('STC_P_CLASSNAME', 'class_style'),
 ('STC_P_COMMENTBLOCK', 'comment_style'),
 ('STC_P_COMMENTLINE', 'comment_style'),
 ('STC_P_DEFNAME', 'keyword3_style'),
 ('STC_P_IDENTIFIER', 'default_style'),
 ('STC_P_NUMBER', 'number_style'),
...