patch.py :  » Development » Leo » Leo-4.7.1-final » leo » modes » Python Open Source

Home
Python Open Source
1.3.1.2 Python
2.Ajax
3.Aspect Oriented
4.Blog
5.Build
6.Business Application
7.Chart Report
8.Content Management Systems
9.Cryptographic
10.Database
11.Development
12.Editor
13.Email
14.ERP
15.Game 2D 3D
16.GIS
17.GUI
18.IDE
19.Installer
20.IRC
21.Issue Tracker
22.Language Interface
23.Log
24.Math
25.Media Sound Audio
26.Mobile
27.Network
28.Parser
29.PDF
30.Project Management
31.RSS
32.Search
33.Security
34.Template Engines
35.Test
36.UML
37.USB Serial
38.Web Frameworks
39.Web Server
40.Web Services
41.Web Unit
42.Wiki
43.Windows
44.XML
Python Open Source » Development » Leo 
Leo » Leo 4.7.1 final » leo » modes » patch.py
# Leo colorizer control file for patch mode.
# This file is in the public domain.

# Properties for patch mode.
properties = {}

# Attributes dict for patch_main ruleset.
patch_main_attributes_dict = {
  "default": "null",
  "digit_re": "",
  "escape": "",
  "highlight_digits": "true",
  "ignore_case": "true",
  "no_word_sep": "",
}

# Dictionary of attributes dictionaries for patch mode.
attributesDictDict = {
  "patch_main": patch_main_attributes_dict,
}

# Keywords dict for patch_main ruleset.
patch_main_keywords_dict = {}

# Dictionary of keywords dictionaries for patch mode.
keywordsDictDict = {
  "patch_main": patch_main_keywords_dict,
}

# Rules for patch_main ruleset.

def patch_rule0(colorer, s, i):
    return colorer.match_eol_span(s, i, kind="literal1", seq="+++",
        at_line_start=True, at_whitespace_end=False, at_word_start=False,
        delegate="", exclude_match=False)

def patch_rule1(colorer, s, i):
    return colorer.match_eol_span(s, i, kind="literal2", seq="---",
        at_line_start=True, at_whitespace_end=False, at_word_start=False,
        delegate="", exclude_match=False)

def patch_rule2(colorer, s, i):
    return colorer.match_eol_span(s, i, kind="keyword3", seq="Index:",
        at_line_start=True, at_whitespace_end=False, at_word_start=False,
        delegate="", exclude_match=False)

def patch_rule3(colorer, s, i):
    return colorer.match_eol_span(s, i, kind="keyword1", seq="+",
        at_line_start=True, at_whitespace_end=False, at_word_start=False,
        delegate="", exclude_match=False)

def patch_rule4(colorer, s, i):
    return colorer.match_eol_span(s, i, kind="keyword1", seq=">",
        at_line_start=True, at_whitespace_end=False, at_word_start=False,
        delegate="", exclude_match=False)

def patch_rule5(colorer, s, i):
    return colorer.match_eol_span(s, i, kind="keyword2", seq="-",
        at_line_start=True, at_whitespace_end=False, at_word_start=False,
        delegate="", exclude_match=False)

def patch_rule6(colorer, s, i):
    return colorer.match_eol_span(s, i, kind="keyword2", seq="<",
        at_line_start=True, at_whitespace_end=False, at_word_start=False,
        delegate="", exclude_match=False)

def patch_rule7(colorer, s, i):
    return colorer.match_eol_span(s, i, kind="keyword3", seq="!",
        at_line_start=True, at_whitespace_end=False, at_word_start=False,
        delegate="", exclude_match=False)

def patch_rule8(colorer, s, i):
    return colorer.match_eol_span(s, i, kind="keyword3", seq="@@",
        at_line_start=True, at_whitespace_end=False, at_word_start=False,
        delegate="", exclude_match=False)

def patch_rule9(colorer, s, i):
    return colorer.match_eol_span(s, i, kind="keyword3", seq="*",
        at_line_start=True, at_whitespace_end=False, at_word_start=False,
        delegate="", exclude_match=False)

# Rules dict for patch_main ruleset.
rulesDict1 = {
  "!": [patch_rule7,],
  "*": [patch_rule9,],
  "+": [patch_rule0,patch_rule3,],
  "-": [patch_rule1,patch_rule5,],
  "<": [patch_rule6,],
  ">": [patch_rule4,],
  "@": [patch_rule8,],
  "I": [patch_rule2,],
}

# x.rulesDictDict for patch mode.
rulesDictDict = {
  "patch_main": rulesDict1,
}

# Import dict for patch mode.
importDict = {}

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.