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

# Properties for idl mode.
properties = {
  "boxComment": "*",
  "commentEnd": "*/",
  "commentStart": "/*",
  "indentCloseBrackets": "}",
  "indentOpenBrackets": "{",
  "lineComment": "//",
  "lineUpClosingBracket": "true",
}

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

# Dictionary of attributes dictionaries for idl mode.
attributesDictDict = {
  "idl_main": idl_main_attributes_dict,
}

# Keywords dict for idl_main ruleset.
idl_main_keywords_dict = {
  "FALSE": "literal2",
  "Object": "keyword3",
  "TRUE": "literal2",
  "any": "keyword3",
  "attribute": "keyword1",
  "boolean": "keyword3",
  "case": "keyword1",
  "char": "keyword3",
  "const": "keyword1",
  "context": "keyword1",
  "default": "keyword1",
  "double": "keyword3",
  "enum": "keyword3",
  "exception": "keyword1",
  "fixed": "keyword1",
  "float": "keyword3",
  "in": "keyword1",
  "inout": "keyword1",
  "interface": "keyword1",
  "long": "keyword3",
  "module": "keyword1",
  "octet": "keyword3",
  "oneway": "keyword1",
  "out": "keyword1",
  "raises": "keyword1",
  "readonly": "keyword1",
  "sequence": "keyword3",
  "short": "keyword3",
  "string": "keyword3",
  "struct": "keyword3",
  "switch": "keyword1",
  "typedef": "keyword3",
  "union": "keyword3",
  "unsigned": "keyword3",
  "void": "keyword3",
  "wchar": "keyword3",
  "wstring": "keyword3",
}

# Dictionary of keywords dictionaries for idl mode.
keywordsDictDict = {
  "idl_main": idl_main_keywords_dict,
}

# Rules for idl_main ruleset.

def idl_rule0(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 idl_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=True, no_word_break=False)

def idl_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 idl_rule3(colorer, s, i):
    return colorer.match_eol_span(s, i, kind="comment2", seq="//",
        at_line_start=False, at_whitespace_end=False, at_word_start=False,
        delegate="", exclude_match=False)

def idl_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 idl_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 idl_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 idl_rule7(colorer, s, i):
    return colorer.match_mark_previous(s, i, kind="function", pattern="(",
        at_line_start=False, at_whitespace_end=False, at_word_start=False, exclude_match=True)

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

# Rules dict for idl_main ruleset.
rulesDict1 = {
  "\"": [idl_rule1,],
  "'": [idl_rule2,],
  "(": [idl_rule7,],
  "/": [idl_rule0,idl_rule3,],
  "0": [idl_rule8,],
  "1": [idl_rule8,],
  "2": [idl_rule8,],
  "3": [idl_rule8,],
  "4": [idl_rule8,],
  "5": [idl_rule8,],
  "6": [idl_rule8,],
  "7": [idl_rule8,],
  "8": [idl_rule8,],
  "9": [idl_rule8,],
  ":": [idl_rule6,],
  "@": [idl_rule8,],
  "A": [idl_rule8,],
  "B": [idl_rule8,],
  "C": [idl_rule8,],
  "D": [idl_rule8,],
  "E": [idl_rule8,],
  "F": [idl_rule8,],
  "G": [idl_rule8,],
  "H": [idl_rule8,],
  "I": [idl_rule8,],
  "J": [idl_rule8,],
  "K": [idl_rule8,],
  "L": [idl_rule8,],
  "M": [idl_rule8,],
  "N": [idl_rule8,],
  "O": [idl_rule8,],
  "P": [idl_rule8,],
  "Q": [idl_rule8,],
  "R": [idl_rule8,],
  "S": [idl_rule8,],
  "T": [idl_rule8,],
  "U": [idl_rule8,],
  "V": [idl_rule8,],
  "W": [idl_rule8,],
  "X": [idl_rule8,],
  "Y": [idl_rule8,],
  "Z": [idl_rule8,],
  "a": [idl_rule8,],
  "b": [idl_rule8,],
  "c": [idl_rule8,],
  "d": [idl_rule8,],
  "e": [idl_rule8,],
  "f": [idl_rule8,],
  "g": [idl_rule8,],
  "h": [idl_rule8,],
  "i": [idl_rule8,],
  "j": [idl_rule8,],
  "k": [idl_rule8,],
  "l": [idl_rule8,],
  "m": [idl_rule8,],
  "n": [idl_rule8,],
  "o": [idl_rule8,],
  "p": [idl_rule8,],
  "q": [idl_rule8,],
  "r": [idl_rule8,],
  "s": [idl_rule8,],
  "t": [idl_rule8,],
  "u": [idl_rule8,],
  "v": [idl_rule8,],
  "w": [idl_rule8,],
  "x": [idl_rule8,],
  "y": [idl_rule8,],
  "z": [idl_rule8,],
  "{": [idl_rule5,],
  "}": [idl_rule4,],
}

# x.rulesDictDict for idl mode.
rulesDictDict = {
  "idl_main": rulesDict1,
}

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