batch.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 » batch.py
# Leo colorizer control file for batch mode.
# This file is in the public domain.

# Properties for batch mode.
properties = {
  "lineComment": "rem",
}

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

# Dictionary of attributes dictionaries for batch mode.
attributesDictDict = {
  "batch_main": batch_main_attributes_dict,
}

# Keywords dict for batch_main ruleset.
batch_main_keywords_dict = {
  "append": "function",
  "attrib": "function",
  "aux": "keyword2",
  "call": "keyword1",
  "cd": "keyword1",
  "chdir": "keyword1",
  "chkdsk": "function",
  "choice": "function",
  "cls": "keyword1",
  "copy": "keyword1",
  "debug": "function",
  "defined": "keyword2",
  "defrag": "function",
  "del": "keyword1",
  "deltree": "function",
  "diskcomp": "function",
  "diskcopy": "function",
  "do": "keyword2",
  "doskey": "function",
  "drvspace": "function",
  "echo": "keyword1",
  "echo.": "keyword1",
  "else": "keyword2",
  "emm386": "function",
  "endlocal": "keyword1",
  "errorlevel": "keyword2",
  "exist": "keyword2",
  "exit": "keyword1",
  "expand": "function",
  "fastopen": "function",
  "fc": "function",
  "fdisk": "function",
  "find": "function",
  "for": "keyword1",
  "format": "function",
  "goto": "keyword3",
  "graphics": "function",
  "if": "keyword1",
  "in": "keyword2",
  "keyb": "function",
  "label": "function",
  "loadfix": "function",
  "md": "keyword1",
  "mem": "function",
  "mkdir": "keyword1",
  "mode": "function",
  "more": "function",
  "move": "function",
  "mscdex": "function",
  "nlsfunc": "function",
  "not": "keyword1",
  "nul": "keyword2",
  "pause": "keyword1",
  "power": "function",
  "print": "function",
  "prn": "keyword2",
  "rd": "function",
  "ren": "keyword1",
  "replace": "function",
  "restore": "function",
  "set": "keyword1",
  "setlocal": "keyword1",
  "setver": "function",
  "share": "function",
  "shift": "keyword1",
  "sort": "function",
  "subst": "function",
  "sys": "function",
  "tree": "function",
  "undelete": "function",
  "unformat": "function",
  "vsafe": "function",
  "xcopy": "function",
}

# Dictionary of keywords dictionaries for batch mode.
keywordsDictDict = {
  "batch_main": batch_main_keywords_dict,
}

# Rules for batch_main ruleset.

def batch_rule0(colorer, s, i):
    return colorer.match_seq(s, i, kind="keyword3", seq="@",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")

def batch_rule1(colorer, s, i):
    return colorer.match_seq(s, i, kind="operator", seq="+",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")

def batch_rule2(colorer, s, i):
    return colorer.match_seq(s, i, kind="operator", seq="|",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")

def batch_rule3(colorer, s, i):
    return colorer.match_seq(s, i, kind="operator", seq="&",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")

def batch_rule4(colorer, s, i):
    return colorer.match_seq(s, i, kind="operator", seq="!",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")

def batch_rule5(colorer, s, i):
    return colorer.match_seq(s, i, kind="operator", seq=">",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")

def batch_rule6(colorer, s, i):
    return colorer.match_seq(s, i, kind="operator", seq="<",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")

def batch_rule7(colorer, s, i):
    return colorer.match_mark_following(s, i, kind="label", pattern=":",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, exclude_match=False)

def batch_rule8(colorer, s, i):
    return colorer.match_eol_span_regexp(s, i, kind="comment1", regexp="REM\\s",
        at_line_start=False, at_whitespace_end=True, at_word_start=False,
        delegate="", exclude_match=False)

def batch_rule9(colorer, s, i):
    return colorer.match_span(s, i, kind="literal1", begin="\"", end="\"",
        at_line_start=False, at_whitespace_end=False, at_word_start=False,
        delegate="",exclude_match=False,
        no_escape=False, no_line_break=True, no_word_break=False)

def batch_rule10(colorer, s, i):
    return colorer.match_seq(s, i, kind="keyword2", seq="%0",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")

def batch_rule11(colorer, s, i):
    return colorer.match_seq(s, i, kind="keyword2", seq="%1",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")

def batch_rule12(colorer, s, i):
    return colorer.match_seq(s, i, kind="keyword2", seq="%2",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")

def batch_rule13(colorer, s, i):
    return colorer.match_seq(s, i, kind="keyword2", seq="%3",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")

def batch_rule14(colorer, s, i):
    return colorer.match_seq(s, i, kind="keyword2", seq="%4",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")

def batch_rule15(colorer, s, i):
    return colorer.match_seq(s, i, kind="keyword2", seq="%5",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")

def batch_rule16(colorer, s, i):
    return colorer.match_seq(s, i, kind="keyword2", seq="%6",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")

def batch_rule17(colorer, s, i):
    return colorer.match_seq(s, i, kind="keyword2", seq="%7",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")

def batch_rule18(colorer, s, i):
    return colorer.match_seq(s, i, kind="keyword2", seq="%8",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")

def batch_rule19(colorer, s, i):
    return colorer.match_seq(s, i, kind="keyword2", seq="%9",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")

def batch_rule20(colorer, s, i):
    return colorer.match_seq_regexp(s, i, kind="keyword2", regexp="%%[[:alpha:]]",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, delegate="")

def batch_rule21(colorer, s, i):
    return colorer.match_span(s, i, kind="keyword2", begin="%", end="%",
        at_line_start=False, at_whitespace_end=False, at_word_start=False,
        delegate="",exclude_match=False,
        no_escape=False, no_line_break=True, no_word_break=False)

def batch_rule22(colorer, s, i):
    return colorer.match_keywords(s, i)

# Rules dict for batch_main ruleset.
rulesDict1 = {
  "!": [batch_rule4,],
  "\"": [batch_rule9,],
  "%": [batch_rule10,batch_rule11,batch_rule12,batch_rule13,batch_rule14,batch_rule15,batch_rule16,batch_rule17,batch_rule18,batch_rule19,batch_rule20,batch_rule21,],
  "&": [batch_rule3,],
  "+": [batch_rule1,],
  ".": [batch_rule22,],
  "0": [batch_rule22,],
  "1": [batch_rule22,],
  "2": [batch_rule22,],
  "3": [batch_rule22,],
  "4": [batch_rule22,],
  "5": [batch_rule22,],
  "6": [batch_rule22,],
  "7": [batch_rule22,],
  "8": [batch_rule22,],
  "9": [batch_rule22,],
  ":": [batch_rule7,],
  "<": [batch_rule6,],
  ">": [batch_rule5,],
  "@": [batch_rule0,batch_rule22,],
  "A": [batch_rule22,],
  "B": [batch_rule22,],
  "C": [batch_rule22,],
  "D": [batch_rule22,],
  "E": [batch_rule22,],
  "F": [batch_rule22,],
  "G": [batch_rule22,],
  "H": [batch_rule22,],
  "I": [batch_rule22,],
  "J": [batch_rule22,],
  "K": [batch_rule22,],
  "L": [batch_rule22,],
  "M": [batch_rule22,],
  "N": [batch_rule22,],
  "O": [batch_rule22,],
  "P": [batch_rule22,],
  "Q": [batch_rule22,],
  "R": [batch_rule8,batch_rule22,],
  "S": [batch_rule22,],
  "T": [batch_rule22,],
  "U": [batch_rule22,],
  "V": [batch_rule22,],
  "W": [batch_rule22,],
  "X": [batch_rule22,],
  "Y": [batch_rule22,],
  "Z": [batch_rule22,],
  "a": [batch_rule22,],
  "b": [batch_rule22,],
  "c": [batch_rule22,],
  "d": [batch_rule22,],
  "e": [batch_rule22,],
  "f": [batch_rule22,],
  "g": [batch_rule22,],
  "h": [batch_rule22,],
  "i": [batch_rule22,],
  "j": [batch_rule22,],
  "k": [batch_rule22,],
  "l": [batch_rule22,],
  "m": [batch_rule22,],
  "n": [batch_rule22,],
  "o": [batch_rule22,],
  "p": [batch_rule22,],
  "q": [batch_rule22,],
  "r": [batch_rule22,],
  "s": [batch_rule22,],
  "t": [batch_rule22,],
  "u": [batch_rule22,],
  "v": [batch_rule22,],
  "w": [batch_rule22,],
  "x": [batch_rule22,],
  "y": [batch_rule22,],
  "z": [batch_rule22,],
  "|": [batch_rule2,],
}

# x.rulesDictDict for batch mode.
rulesDictDict = {
  "batch_main": rulesDict1,
}

# Import dict for batch 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.