File: meson

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

list keyword if elif else endif foreach endforeach
list constant true false

state start code
    char # comment
    str "'''" longstring
    char "'" string
    char -b a-zA-Z_ ident
    char 0-9 number
    eat this

state comment
    char "\n" start
    eat this

state longstring string
    str "'''" start string
    eat this

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

state string-escape special
    char "n'\\" string special
    recolor string
    noeat string

state ident
    char -b a-zA-Z_0-9 this
    inlist keyword start
    inlist constant start
    noeat start

state number numeric
    char 0-9 this
    noeat start