mirror of
				https://github.com/cmur2/joe-syntax.git
				synced 2025-11-03 18:25:08 +01:00 
			
		
		
		
	Python: Highlight "private" members (e.g. _var) in brown
This commit is contained in:
		
							
								
								
									
										14
									
								
								python.jsf
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								python.jsf
									
									
									
									
									
								
							@@ -16,13 +16,15 @@
 | 
				
			|||||||
=Bad		bold red
 | 
					=Bad		bold red
 | 
				
			||||||
=Brace		magenta
 | 
					=Brace		magenta
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					=PrivateMember	fg_310 # brown
 | 
				
			||||||
 | 
					
 | 
				
			||||||
:idle Idle
 | 
					:idle Idle
 | 
				
			||||||
	*		idle
 | 
						*		idle
 | 
				
			||||||
	"#"		comment		recolor=-1
 | 
						"#"		comment		recolor=-1
 | 
				
			||||||
	"0-9"		first_digit	recolor=-1
 | 
						"0-9"		first_digit	recolor=-1
 | 
				
			||||||
	"'"		string_sq_1	recolor=-1
 | 
						"'"		string_sq_1	recolor=-1
 | 
				
			||||||
	"\""		string_dq_1	recolor=-1
 | 
						"\""		string_dq_1	recolor=-1
 | 
				
			||||||
	"a-zA-Z_"	ident		buffer
 | 
						"a-zA-Z_"	ident		noeat
 | 
				
			||||||
	"{}"		brace		recolor=-1
 | 
						"{}"		brace		recolor=-1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
:brace Brace
 | 
					:brace Brace
 | 
				
			||||||
@@ -139,6 +141,10 @@
 | 
				
			|||||||
	"0-9"		enum
 | 
						"0-9"		enum
 | 
				
			||||||
 | 
					
 | 
				
			||||||
:ident Idle
 | 
					:ident Idle
 | 
				
			||||||
 | 
						*		ident1		noeat buffer
 | 
				
			||||||
 | 
						"_"		priv_member	recolor=-1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					:ident1 Idle
 | 
				
			||||||
	*		idle		noeat strings
 | 
						*		idle		noeat strings
 | 
				
			||||||
	"and"		kw
 | 
						"and"		kw
 | 
				
			||||||
	"assert"	kw
 | 
						"assert"	kw
 | 
				
			||||||
@@ -170,11 +176,15 @@
 | 
				
			|||||||
	"while"		kw
 | 
						"while"		kw
 | 
				
			||||||
	"yield"		kw
 | 
						"yield"		kw
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
	"a-zA-Z0-9_"	ident
 | 
						"a-zA-Z0-9_"	ident1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
:kw Keyword
 | 
					:kw Keyword
 | 
				
			||||||
	*	idle	noeat
 | 
						*	idle	noeat
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					:priv_member PrivateMember
 | 
				
			||||||
 | 
						*		idle		noeat
 | 
				
			||||||
 | 
						"a-zA-Z0-9_"	priv_member
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.subr comment_todo
 | 
					.subr comment_todo
 | 
				
			||||||
# initial state
 | 
					# initial state
 | 
				
			||||||
:comment_todo_init Comment
 | 
					:comment_todo_init Comment
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user