mirror of
				https://github.com/cmur2/joe-syntax.git
				synced 2025-11-03 18:25:08 +01:00 
			
		
		
		
	New separate template file for comment todo labels
This commit is contained in:
		
							
								
								
									
										38
									
								
								comment_todo.part.jsf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								comment_todo.part.jsf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,38 @@
 | 
			
		||||
# ===== Color Definitions =====
 | 
			
		||||
 | 
			
		||||
=Comment 	green
 | 
			
		||||
=CommentLabel	bold green
 | 
			
		||||
 | 
			
		||||
# ===== Example Usage =====
 | 
			
		||||
 | 
			
		||||
:line_comment Comment
 | 
			
		||||
	*		line_comment
 | 
			
		||||
	# might be TODO label
 | 
			
		||||
	"BFHNTX"	line_comment	noeat call=.comment_todo()
 | 
			
		||||
	"\n"		idle
 | 
			
		||||
 | 
			
		||||
# ===== Subroutine Declaration =====
 | 
			
		||||
 | 
			
		||||
.subr comment_todo
 | 
			
		||||
# initial state
 | 
			
		||||
:comment_todo_init Comment
 | 
			
		||||
	*		comment_todo_guess	buffer
 | 
			
		||||
 | 
			
		||||
# highlight common TODO labels
 | 
			
		||||
:comment_todo_guess Comment
 | 
			
		||||
	*		comment_todo_unknown	noeat strings
 | 
			
		||||
	"BUG"		comment_todo
 | 
			
		||||
	"FIXME"		comment_todo
 | 
			
		||||
	"HACK"		comment_todo
 | 
			
		||||
	"NOTE"		comment_todo
 | 
			
		||||
	"TODO"		comment_todo
 | 
			
		||||
	"XXX"		comment_todo
 | 
			
		||||
done
 | 
			
		||||
	"A-Z"		comment_todo_guess
 | 
			
		||||
 | 
			
		||||
:comment_todo_unknown Comment
 | 
			
		||||
	*		NULL		noeat return
 | 
			
		||||
 | 
			
		||||
:comment_todo CommentLabel
 | 
			
		||||
	*		NULL		noeat return
 | 
			
		||||
.end
 | 
			
		||||
		Reference in New Issue
	
	Block a user