File: m_unrealscript.fte

package info (click to toggle)
efte 1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,800 kB
  • sloc: cpp: 43,587; ansic: 1,228; makefile: 271; objc: 92; sh: 40
file content (48 lines) | stat: -rw-r--r-- 1,952 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# C mode

colorize UNREALSCRIPT {
    SyntaxParser = 'C';

    color {
        { 'Normal',        'Editor_Default' },
        { 'Number',        'Lang_DecimalNumber' },
        { 'HexNumber',     'Lang_HexNumber' },
        { 'Punctuation',   'Lang_Punctuation' },
        { 'String',        'Lang_String' },
        { 'Comment',       'Lang_Comment' },
        { 'CPreprocessor', 'Lang_Preprocessor' },
        { 'Function',      'Lang_Function' },
        { 'Label',         'Lang_Label' },
    };

    keyword 'Editor_Keywords' {
        'class', 'extends', 'function', 'defaultproperties', 'Super',
        'var', 'if', 'return', 'bool', 'true', 'false', 'string', 'local',
        'Begin', 'Object', 'array', 'int', 'float', 'enum', 'localized',
        'struct', 'config', 'for', 'else', 'event', 'exec', 'state', 'while',
        'break', 'continue', 'native', 'simulated', 'abstract', 'native',
        'nativereplication', 'const', 'final', 'iterator', 'static', 'color',
        'simulated', 'replication', 'unreliable', 'foreach', 'optional',
        'out', 'switch', 'transient', 'name', 'export', 'delegate', 'cpptext',
        'globalconfig', 'self', 'preoperator', 'postoperator', 'operator',
        'coerce', 'noexport', 'ignores',
    };
}

mode UNREALSCRIPT: C {      # UScript Mode
    FileNameRx          = /\.\c{UC}$/;
    HilitOn             = 1;
    Colorizer           = 'UNREALSCRIPT';
    AutoIndent          = 0;
    IndentMode          = 'C';
    MatchCase           = 0;
    Trim                = 1;
    MultiLineHilit      = 1;
    AutoHilitParen      = 1;
    RoutineRegexp	= /^\s*(({cpptext}|{defaultproperties}|{replication})\s*)|((({native}|{native\(\d+\)}|{final}|{static}|{simulated}|{exec})\s+)*({function}|{event})\s+(.+\s+)?[\w_]+\s*\([^;]*)$/;
    SaveFolds           = 2;      # save fold info at end of line
    CommentStart        = ' /*';
    CommentEnd          = '*/';
}

oinclude 'mym_unrealscript.fte';