code / bp

Lines4.3K C3.3K Markdown541 YAML273 make110 Shell77 Lua54
(35 lines)
1 # This file contains some default general-purpose definitions.
3 nodent: \N !(\t/` )
4 indent: \N (` /\t)
5 dedent: $ !(nodent/indent)
6 crlf: \r\n
7 cr: \r
8 anglebraces: `< ..%(\n/>`<anglebraces/>`",'string) `>
9 brackets: `[ ..%(\n/>`[brackets/>`",'string) `]
10 braces: `{ ..%(\n/>`{braces/>`",'string) `}
11 parens: `( ..%(\n/>`(parens/>`",'string) `)
12 string: `" ..%string-escape `" / `' ..%string-escape `'
13 string-escape: `\ (`x 2 Hex / 1-3 `0-7 / `u 1-4 Hex / .)
14 id: \I *\i
15 var: \I *\i
16 keyword: !"" # No keywords defined by default
17 word: \b +\i
18 HEX: `0-9,A-F
19 Hex: `0-9,a-f,A-F
20 hex: `0-9,a-f
21 number: +`0-9 [`. *`0-9] / `. +`0-9
22 int: +`0-9
23 digit: `0-9
24 Abc123: `a-z,A-Z,0-9
25 ABC123: `A-Z,0-9
26 abc123: `a-z,0-9
27 Abc: `a-z,A-Z
28 ABC: `A-Z
29 abc: `a-z
30 esc: \e
31 tab: \t
32 nl: \n; lf: \n
33 comment: !''; # No default definition, can be overridden
34 __: *(` /\t/\n/\r/comment)
35 _: *(` /\t)