aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/lexer.tes
blob: 01c3bf1b984f4d53465d8310d72e2e579a823b8d (plain)
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
! Lexer configuration and styles (ED hook) !

! Match Q-Reg "_" against beginning of current doc's first line !
@[lexer.checkheader]{
  .h
  0,0,1ESPOSITIONFROMLINE:X.h
  EQ.h :SQ_ Q*EB
}

! Match Q-Reg "_" against end of current doc's file name !
@[lexer.checkname]{
  EQ* ZJ I H:SQ_
  Q*EB
}

@[lexer.auto]{
  ! Set up brace lightning !
  :M[color.bracelight],34M[color.set]
  :M[color.error],35M[color.set]
}

! individual tests are appended by the lexers/*.tes files !
EMQ[$SCITECOPATH]/lexers/batch.tes
EMQ[$SCITECOPATH]/lexers/cmake.tes
EMQ[$SCITECOPATH]/lexers/cpp.tes
EMQ[$SCITECOPATH]/lexers/make.tes
EMQ[$SCITECOPATH]/lexers/patch.tes
EMQ[$SCITECOPATH]/lexers/sh.tes
EMQ[$SCITECOPATH]/lexers/xml.tes

! append an "end" label !
:[lexer.auto]!end!