dotfiles

My dotfiles.
Log | Files | Refs | LICENSE

skill.jsf (1842B)


      1 # JOE syntax highlight file for SKILL
      2 # Based on the very rudimentary lisp syntax file
      3 # Written by Joachim Fenkes <skill dot jsf at dojoe dot net> in 2005
      4 
      5 =Idle
      6 =Ident
      7 =Comment
      8 =Constant
      9 =String 	+Constant
     10 =StringEscape	+Escape +String
     11 =Brace
     12 =Symbol		+Atom +Constant +DefinedIdent
     13 =Keyword
     14 =Conditional	+Statement +Keyword
     15 =Loop		+Statement +Keyword
     16 =Number		+Constant
     17 =Bad
     18 
     19 :idle Idle
     20 	*		idle
     21 	";"		comment		recolor=-1
     22 	"\""		string		recolor=-1
     23 	"/"		slash
     24 	"()[]{}"	bracket		recolor=-1
     25 	"'"		maybe_symbol	recolor=-1
     26 	"a-zA-Z_"	maybe_keyword	buffer recolor=-1
     27 	"0-9"		number		recolor=-1
     28 
     29 :maybe_keyword Ident
     30 	*		idle		noeat	strings
     31 	"list"		keyword
     32 	"procedure"	keyword
     33 	"while"		loop
     34 	"foreach"	loop
     35 	"if"		cond
     36 	"for"		loop
     37 	"when"		cond
     38 	"unless"	cond
     39 	"cond"		cond
     40 	"defun"		keyword
     41 	"let"		keyword
     42 	"prog"		keyword
     43 	"else"		cond
     44 	"then"		cond
     45 	"case"		cond
     46 	"caseq"		cond
     47 	"nil"		const
     48 	"t"		keyword
     49 done
     50 	"0-9a-zA-Z_"	maybe_keyword
     51 
     52 :number Number
     53 	*		idle		noeat
     54 	"0-9."		number
     55 	
     56 :slash Idle
     57 	*		idle
     58 	"/"		slash
     59 	"*"		mcomment	recolor=-2
     60 
     61 :comment Comment comment
     62 	*		comment
     63 	"BFHNTX"	comment		noeat call=comment_todo.comment_todo()
     64 	"\n"		idle
     65 
     66 :mcomment Comment comment
     67 	*		mcomment
     68 	"BFHNTX"	mcomment	noeat call=comment_todo.comment_todo()
     69 	"*"		maybe_end_mcomment
     70 	
     71 :maybe_end_mcomment Comment comment
     72 	*		mcomment	noeat
     73 	"*"		maybe_end_mcomment
     74 	"/"		idle
     75 
     76 :string String string
     77 	*		string
     78 	"\""		idle
     79 	"\\"		string_escape	recolor=-1
     80 
     81 :string_escape StringEscape string
     82 	*		string
     83 	"\n"		string		recolor=-2
     84 
     85 :bracket Brace
     86 	*		idle		noeat
     87 
     88 :maybe_symbol Idle
     89 	*		symbol		recolor=-2
     90 	"(){}"		bracket		recolor=-2
     91 
     92 :symbol Symbol
     93 	*		symbol
     94 	" \t\n"		idle		recolor=-1
     95 	")"		bracket		recolor=-1
     96 
     97 :keyword Keyword
     98 	*		idle		noeat
     99 
    100 :cond Conditional
    101 	*		idle		noeat
    102 
    103 :loop Loop
    104 	*		idle		noeat
    105 
    106 :const Constant
    107 	*		idle		noeat