Package Editra :: Package src :: Package autocomp :: Module csscomp
[hide private]

Module csscomp

source code

Simple autocompletion support for Cascading Style Sheets.


Author: Cody Precord <cprecord@editra.org>

Classes [hide private]
  Completer
Code completer provider
Functions [hide private]
 
IsPsuedoClass(cmd, line)
Check the line to see if its a link pseudo class
source code
 
GetWordLeft(line)
Get the first valid word to the left of the end of line
source code
Variables [hide private]
  __cvsid__ = '$Id: csscomp.py 59626 2009-03-19 16:39:41Z CJP $'
  __revision__ = '$Revision: 59626 $'
  RE_LINK_PSEUDO = re.compile(r'a:(link|visited|active|hover|foc...
  RE_CSS_COMMENT = re.compile(r'/\*[^\*]*\*+([^/][^\*]*\*+)*/')
  RE_CSS_BLOCK = re.compile(r'\{[^\}]*\}')
  PROP_OPTS = {u'border-style': [u'none', u'hidden', u'dotted', ...
Function Details [hide private]

IsPsuedoClass(cmd, line)

source code 

Check the line to see if its a link pseudo class

Parameters:
  • cmd - current command
  • line - line of the command
Returns:
bool

GetWordLeft(line)

source code 

Get the first valid word to the left of the end of line

Returns:
string

Variables Details [hide private]

RE_LINK_PSEUDO

Value:
re.compile(r'a:(link|visited|active|hover|focus)*')

PROP_OPTS

Value:
{u'border-style': [u'none',
                   u'hidden',
                   u'dotted',
                   u'dashed',
                   u'solid',
                   u'double',
                   u'groove',
                   u'ridge',
...