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

# Properties for chill mode.
properties = {
  "commentEnd": "*/",
  "commentStart": "/*",
}

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

# Dictionary of attributes dictionaries for chill mode.
attributesDictDict = {
  "chill_main": chill_main_attributes_dict,
}

# Keywords dict for chill_main ruleset.
chill_main_keywords_dict = {
  "and": "keyword1",
  "array": "keyword2",
  "begin": "keyword1",
  "bin": "keyword3",
  "bool": "keyword3",
  "case": "keyword1",
  "char": "keyword3",
  "dcl": "keyword2",
  "div": "keyword1",
  "do": "keyword1",
  "eject": "label",
  "else": "keyword1",
  "elsif": "keyword1",
  "end": "keyword1",
  "esac": "keyword1",
  "exit": "keyword1",
  "false": "literal2",
  "fi": "keyword1",
  "for": "keyword1",
  "goto": "keyword1",
  "grant": "keyword2",
  "if": "keyword1",
  "in": "keyword1",
  "int": "keyword3",
  "label": "keyword2",
  "lio_infos": "label",
  "mod": "keyword1",
  "module": "keyword2",
  "module_description_header": "label",
  "msg_xref": "label",
  "newmode": "keyword2",
  "not": "keyword1",
  "null": "literal2",
  "od": "keyword1",
  "of": "keyword1",
  "on": "keyword1",
  "or": "keyword1",
  "out": "keyword1",
  "pack": "keyword2",
  "patch_infos": "label",
  "powerset": "keyword2",
  "proc": "keyword2",
  "ptr": "keyword3",
  "range": "keyword3",
  "ref": "keyword3",
  "result": "keyword1",
  "return": "keyword1",
  "seize": "keyword2",
  "set": "keyword2",
  "struct": "keyword2",
  "swsg_infos": "label",
  "syn": "keyword2",
  "synmode": "keyword2",
  "then": "keyword1",
  "to": "keyword1",
  "true": "literal2",
  "type": "keyword2",
  "until": "keyword1",
  "uses": "keyword1",
  "while": "keyword1",
  "with": "keyword1",
  "xor": "keyword1",
}

# Dictionary of keywords dictionaries for chill mode.
keywordsDictDict = {
  "chill_main": chill_main_keywords_dict,
}

# Rules for chill_main ruleset.

def chill_rule0(colorer, s, i):
    return colorer.match_span(s, i, kind="comment2", begin="<>", end="<>",
        at_line_start=False, at_whitespace_end=False, at_word_start=False,
        delegate="",exclude_match=False,
        no_escape=False, no_line_break=False, no_word_break=False)

def chill_rule1(colorer, s, i):
    return colorer.match_span(s, i, kind="comment1", begin="/*", end="*/",
        at_line_start=False, at_whitespace_end=False, at_word_start=False,
        delegate="",exclude_match=False,
        no_escape=False, no_line_break=False, no_word_break=False)

def chill_rule2(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 chill_rule3(colorer, s, i):
    return colorer.match_span(s, i, kind="literal1", begin="H'", 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 chill_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 chill_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 chill_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 chill_rule7(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 chill_rule8(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 chill_rule9(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 chill_rule10(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 chill_rule11(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 chill_rule12(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 chill_rule13(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 chill_rule14(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 chill_rule15(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 chill_rule16(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 chill_rule17(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 chill_rule18(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 chill_rule19(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 chill_rule20(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 chill_rule21(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 chill_rule22(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 chill_rule23(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 chill_rule24(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 chill_rule25(colorer, s, i):
    return colorer.match_keywords(s, i)

# Rules dict for chill_main ruleset.
rulesDict1 = {
  "'": [chill_rule2,],
  "(": [chill_rule5,],
  ")": [chill_rule4,],
  "*": [chill_rule11,],
  "+": [chill_rule8,],
  ",": [chill_rule13,],
  "-": [chill_rule9,],
  ".": [chill_rule12,],
  "/": [chill_rule1,chill_rule10,chill_rule20,],
  "0": [chill_rule25,],
  "1": [chill_rule25,],
  "2": [chill_rule25,],
  "3": [chill_rule25,],
  "4": [chill_rule25,],
  "5": [chill_rule25,],
  "6": [chill_rule25,],
  "7": [chill_rule25,],
  "8": [chill_rule25,],
  "9": [chill_rule25,],
  ":": [chill_rule17,chill_rule18,],
  ";": [chill_rule14,],
  "<": [chill_rule0,chill_rule22,chill_rule24,],
  "=": [chill_rule19,],
  ">": [chill_rule21,chill_rule23,],
  "@": [chill_rule16,chill_rule25,],
  "A": [chill_rule25,],
  "B": [chill_rule25,],
  "C": [chill_rule25,],
  "D": [chill_rule25,],
  "E": [chill_rule25,],
  "F": [chill_rule25,],
  "G": [chill_rule25,],
  "H": [chill_rule3,chill_rule25,],
  "I": [chill_rule25,],
  "J": [chill_rule25,],
  "K": [chill_rule25,],
  "L": [chill_rule25,],
  "M": [chill_rule25,],
  "N": [chill_rule25,],
  "O": [chill_rule25,],
  "P": [chill_rule25,],
  "Q": [chill_rule25,],
  "R": [chill_rule25,],
  "S": [chill_rule25,],
  "T": [chill_rule25,],
  "U": [chill_rule25,],
  "V": [chill_rule25,],
  "W": [chill_rule25,],
  "X": [chill_rule25,],
  "Y": [chill_rule25,],
  "Z": [chill_rule25,],
  "[": [chill_rule7,],
  "]": [chill_rule6,],
  "^": [chill_rule15,],
  "_": [chill_rule25,],
  "a": [chill_rule25,],
  "b": [chill_rule25,],
  "c": [chill_rule25,],
  "d": [chill_rule25,],
  "e": [chill_rule25,],
  "f": [chill_rule25,],
  "g": [chill_rule25,],
  "h": [chill_rule25,],
  "i": [chill_rule25,],
  "j": [chill_rule25,],
  "k": [chill_rule25,],
  "l": [chill_rule25,],
  "m": [chill_rule25,],
  "n": [chill_rule25,],
  "o": [chill_rule25,],
  "p": [chill_rule25,],
  "q": [chill_rule25,],
  "r": [chill_rule25,],
  "s": [chill_rule25,],
  "t": [chill_rule25,],
  "u": [chill_rule25,],
  "v": [chill_rule25,],
  "w": [chill_rule25,],
  "x": [chill_rule25,],
  "y": [chill_rule25,],
  "z": [chill_rule25,],
}

# x.rulesDictDict for chill mode.
rulesDictDict = {
  "chill_main": rulesDict1,
}

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