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

# Properties for jcl mode.
properties = {
  "wordBreakChars": ",+-=<>/?^&*",
}

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

# Dictionary of attributes dictionaries for jcl mode.
attributesDictDict = {
  "jcl_main": jcl_main_attributes_dict,
}

# Keywords dict for jcl_main ruleset.
jcl_main_keywords_dict = {
  "cntl": "keyword2",
  "command": "keyword2",
  "dd": "keyword2",
  "else": "keyword2",
  "encntl": "keyword2",
  "endif": "keyword2",
  "exec": "keyword2",
  "if": "keyword2",
  "include": "keyword2",
  "jclib": "keyword2",
  "job": "keyword2",
  "msg": "keyword2",
  "output": "keyword2",
  "pend": "keyword2",
  "proc": "keyword2",
  "set": "keyword2",
  "then": "keyword2",
  "xmit": "keyword2",
}

# Dictionary of keywords dictionaries for jcl mode.
keywordsDictDict = {
  "jcl_main": jcl_main_keywords_dict,
}

# Rules for jcl_main ruleset.

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

def jcl_rule1(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=False, no_word_break=False)

def jcl_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 jcl_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 jcl_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 jcl_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 jcl_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 jcl_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 jcl_rule8(colorer, s, i):
    return colorer.match_keywords(s, i)

# Rules dict for jcl_main ruleset.
rulesDict1 = {
  "&": [jcl_rule5,],
  "'": [jcl_rule1,],
  ",": [jcl_rule7,],
  "/": [jcl_rule0,],
  "0": [jcl_rule8,],
  "1": [jcl_rule8,],
  "2": [jcl_rule8,],
  "3": [jcl_rule8,],
  "4": [jcl_rule8,],
  "5": [jcl_rule8,],
  "6": [jcl_rule8,],
  "7": [jcl_rule8,],
  "8": [jcl_rule8,],
  "9": [jcl_rule8,],
  "<": [jcl_rule3,],
  "=": [jcl_rule2,],
  ">": [jcl_rule4,],
  "@": [jcl_rule8,],
  "A": [jcl_rule8,],
  "B": [jcl_rule8,],
  "C": [jcl_rule8,],
  "D": [jcl_rule8,],
  "E": [jcl_rule8,],
  "F": [jcl_rule8,],
  "G": [jcl_rule8,],
  "H": [jcl_rule8,],
  "I": [jcl_rule8,],
  "J": [jcl_rule8,],
  "K": [jcl_rule8,],
  "L": [jcl_rule8,],
  "M": [jcl_rule8,],
  "N": [jcl_rule8,],
  "O": [jcl_rule8,],
  "P": [jcl_rule8,],
  "Q": [jcl_rule8,],
  "R": [jcl_rule8,],
  "S": [jcl_rule8,],
  "T": [jcl_rule8,],
  "U": [jcl_rule8,],
  "V": [jcl_rule8,],
  "W": [jcl_rule8,],
  "X": [jcl_rule8,],
  "Y": [jcl_rule8,],
  "Z": [jcl_rule8,],
  "a": [jcl_rule8,],
  "b": [jcl_rule8,],
  "c": [jcl_rule8,],
  "d": [jcl_rule8,],
  "e": [jcl_rule8,],
  "f": [jcl_rule8,],
  "g": [jcl_rule8,],
  "h": [jcl_rule8,],
  "i": [jcl_rule8,],
  "j": [jcl_rule8,],
  "k": [jcl_rule8,],
  "l": [jcl_rule8,],
  "m": [jcl_rule8,],
  "n": [jcl_rule8,],
  "o": [jcl_rule8,],
  "p": [jcl_rule8,],
  "q": [jcl_rule8,],
  "r": [jcl_rule8,],
  "s": [jcl_rule8,],
  "t": [jcl_rule8,],
  "u": [jcl_rule8,],
  "v": [jcl_rule8,],
  "w": [jcl_rule8,],
  "x": [jcl_rule8,],
  "y": [jcl_rule8,],
  "z": [jcl_rule8,],
  "|": [jcl_rule6,],
}

# x.rulesDictDict for jcl mode.
rulesDictDict = {
  "jcl_main": rulesDict1,
}

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