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

Module ada

source code

FILE: ada.py AUTHOR: Cody Precord


To Do: styles, keywords, testing

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: ada.py 52852 2008-03-27 13:45:40Z CJP $'
  __revision__ = '$Revision: 52852 $'
  ADA_KEYWORDS = (0, 'abort abstract accept access aliased all a...
  SYNTAX_ITEMS = [('STC_ADA_CHARACTER', 'char_style'), ('STC_ADA...
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]

ADA_KEYWORDS

Value:
(0,
 'abort abstract accept access aliased all array at begin body case co\
nstant declare delay delta digits do else elsif end entry exception ex\
it for function generic goto if in is limited loop new null of others \
out package pragma private procedure protected raise range record rena\
mes requeue return reverse select separate subtype tagged task termina\
te then type until use when while with')

SYNTAX_ITEMS

Value:
[('STC_ADA_CHARACTER', 'char_style'),
 ('STC_ADA_CHARACTEREOL', 'stringeol_style'),
 ('STC_ADA_COMMENTLINE', 'comment_style'),
 ('STC_ADA_DEFAULT', 'default_style'),
 ('STC_ADA_DELIMITER', 'operator_style'),
 ('STC_ADA_IDENTIFIER', 'default_style'),
 ('STC_ADA_ILLEGAL', 'error_style'),
 ('STC_ADA_LABEL', 'keyword2_style'),
...