File: m_ebnf.fte

package info (click to toggle)
efte 1.1-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,904 kB
  • sloc: cpp: 43,587; ansic: 1,228; makefile: 271; objc: 92; sh: 40
file content (36 lines) | stat: -rw-r--r-- 943 bytes parent folder | download | duplicates (4)
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
colorize EBNF {
    SyntaxParser        = 'SIMPLE';
    
    color {
        { 'Normal',      'Editor_Default' },
        { 'String',      'Lang_String' },
        { 'Symbol',      'Lang_Function' },
        { 'Punctuation', 'Lang_Punctuation' },
        { 'Comment',     'Lang_Comment' },
    };
    
    h_state 0 { 'Normal' }
    h_trans { 1, '', '#', 'Comment' }
    h_trans { 2, '<', '"', 'String' }
    h_trans { 0, 's', '.|{}=[]()', 'Punctuation' }

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

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

mode EBNF: PLAIN {
    FileNameRx          = '\\.\\c{EBNF}$';
    Colorizer           = 'EBNF';
    HilitOn             = 1;
    AutoIndent          = 1;
    IndentMode          = 'PLAIN';
    MultiLineHilit      = 1;
    AutoHilitParen      = 1;
}

oinclude 'mym_ebnf.fte';