File: tex

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 (26 lines) | stat: -rw-r--r-- 382 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
syntax tex

# TODO: Inline math ($...$)
# TODO: Display math ($$...$$, \[...\])

state text
    char \\ backslash
    char % comment
    eat this

state backslash macro
    char A-Za-z macro
    char "\\,;{}" escape
    eat text error

state macro
    char A-Za-z this
    noeat text

state escape
    recolor special 2
    noeat text

state comment
    char "\n" text
    eat this