File: roff

package info (click to toggle)
dte 1.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,152 kB
  • sloc: ansic: 28,421; sh: 94; awk: 56; makefile: 13; sed: 1
file content (56 lines) | stat: -rw-r--r-- 1,106 bytes parent folder | download | duplicates (2)
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
syntax roff

state line-start
    char -b '.' request
    char "\n" this
    noeat text

# TODO: Highlight .TH request in bold
# TODO: Highlight "quoted strings" in request arguments
state request
    char -b a-zA-Z this
    inlist section section
    noeat text

state escape-start escape
    char -b '"#' comment
    char -b f font-selection
    char -b ( 2char-escape
    char " \\.%!|^&)/~:{}acdeEprtu-" text escape
    eat text error

state 2char-escape escape
    char -b "A-Za-z0-9_<>=!?$%*|/'\":^,~.`+-" 2char-escape-2
    recolor error
    char "\n" line-start
    eat text error

state 2char-escape-2 escape
    char "A-Za-z0-9_<>=!?$%*|/'\":^,~.`+-" text escape
    recolor error
    char "\n" line-start
    eat text error

state font-selection escape
    char -b RBI text escape
    noeat text

state text
    char -b '\\' escape-start
    char "\n" line-start
    eat this

state comment
    recolor comment
    char "\n" line-start
    eat this

state section
    char "\n" line-start
    eat this

list section .SH .SS

default special escape
default string request
default keyword section