File: m_ada.fte

package info (click to toggle)
fte 0.46b5-4.2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,844 kB
  • ctags: 5,183
  • sloc: cpp: 39,445; ansic: 2,415; perl: 567; makefile: 71; sh: 30
file content (72 lines) | stat: -rw-r--r-- 2,491 bytes parent folder | download
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
colorize Ada {
    SyntaxParser        = 'SIMPLE';
    
    color {
        { 'Normal',      'Editor_Default' },
        { 'Number',      'Lang_Number' },
        { 'Punctuation', 'Lang_Punctuation' },
        { 'String',      'Lang_String' },
        { 'Comment',     'Lang_Comment' },
        { 'Function',    'Lang_Function' },
    };
    
    keyword 'Editor_Keywords' {
        'abort', 'else', 'new', 'return',  'abs', 'elsif', 'not', 'reverse',
        'abstract', 'end', 'null', 'accept',  'entry', 'select', 'access',
        'exception', 'separate', 'aliased',  'exit', 'of', 'subtype', 'all',
        'or', 'and', 'for', 'others',  'tagged', 'array', 'function', 'out',
        'task', 'at', 'terminate',  'generic', 'package', 'then', 'begin',
        'goto', 'pragma', 'type', 'body',  'private', 'if', 'procedure',
        'case', 'in',  'protected', 'until', 'constant', 'is',  'use', 'raise',
        'declare', 'range',  'when', 'delay', 'limited', 'record',  'while',
        'delta', 'loop', 'rem',  'with', 'digits', 'renames', 'do',  'mod',
        'requeue', 'xor',
    }; 
    h_state 0 { 'Normal' }
    h_trans { 4, '-s', 'a-zA-Z_', 'Normal' }
    h_trans { 1, '', '--', 'Comment' }
    h_trans { 2, '', '"', 'String' }
    h_trans { 3, '', '\'', 'String' }
    h_trans { 5, 's', '0-9', 'Number' }
    h_trans { 0, 'S', '_a-zA-Z0-9', 'Punctuation' }

    h_state 1 { 'Comment' }
    h_trans { 0, '$', '', 'Normal' }

    h_state 2 { 'String' }
    h_trans { 0, '', '"', 'String' }
    h_trans { 0, '$', '', 'String' }
    h_trans { 4, 'Qq', '\\', 'String' }

    h_state 3 { 'String' }
    h_trans { 0, '', '\'', 'String' }
    h_trans { 0, '$', '', 'String' }

    h_state 4 { 'Normal' }
    h_trans { 0, '$', '', 'Normal' }
    h_wtype { 0, 0, 0, '', 'a-zA-Z0-9_' }

    h_state 5 { 'Number' }
    h_trans { 0, '-S', '0-9', 'Normal' }
    h_trans { 0, '$', '', 'Normal' }
}

mode Ada: PLAIN {               # Ada mode
    FileNameRx          = '\\.\\c{ADS}|{ADB}$';
    Colorizer           = 'Ada';
    HilitOn             = 1;
    AutoIndent          = 1;
    IndentMode          = 'PLAIN';
    TabSize             = 8;
    SpaceTabs           = 1;
    MatchCase           = 1;
    Trim                = 1;
    MultiLineHilit      = 0;
    AutoHilitParen      = 1;
    
    RoutineRegexp       = /^\s*{function}|{procedure}\s/;
    
    SaveFolds           = 2;      # save fold info at end of line
    CommentStart        = ' --';
    CommentEnd          = '';
}