dotfiles

My dotfiles.
git clone git://git.ryanmj.xyz/dotfiles.git
Log | Files | Refs | LICENSE

troff.jsf.in (982B)


      1 # Syntax file for Troff
      2 
      3 =Idle
      4 =Comment	green
      5 =Escape		magenta
      6 =Command	bold
      7 =Bad		red
      8 
      9 # First character of line
     10 
     11 :first Idle
     12 	*		rest		noeat
     13 	".'"		command_1
     14 
     15 :rest Idle
     16 	*		rest
     17 	"\n"		first
     18 	"\\"		escape		recolor=-1
     19 
     20 :command_1 Command
     21 	*		rest		noeat
     22 	" 	"	command_1
     23 	"a-zA-Z_"	command_2
     24 
     25 :command_2 Command
     26 	*		rest
     27 	"a-zA-Z0-9_"	command_done	recolor=-1
     28 
     29 :command_done Command
     30 	*		rest		noeat
     31 
     32 :escape Escape
     33 	*		bad		recolor=-2
     34 	"-\\e'`. 0|^&!%acdprtu{}"	rest
     35 	"*fgn"			name
     36 	"k"			reg
     37 	"z"			reg
     38 	"("			name2
     39 	"$s"			num
     40 	"bCDhHlLNoSvwxX"	str
     41 	"\n"		first
     42 	"\""		comment		recolor=-2
     43 
     44 # A name: ( means two characters
     45 
     46 :name Escape
     47 	*		rest
     48 	"("		name2
     49 
     50 # Two character name
     51 
     52 :name2 Escape
     53 	*		reg
     54 
     55 # One character name
     56 
     57 :reg Escape
     58 	*		rest
     59 
     60 # String
     61 
     62 :str Escape
     63 	*		bad	recolor=-1
     64 	"'"		str_body
     65 
     66 :str_body Escape
     67 	*		str_body
     68 	"\n"		first
     69 	"'"		rest
     70 
     71 # Number
     72 
     73 :num Escape
     74 	*		rest	noeat
     75 	"-+0-9"		num
     76 
     77 :comment Comment
     78 	*		comment
     79 	"\n"		first
     80 
     81 :bad Bad
     82 	*		rest		noeat