add sql highlighter for sqlx
This commit is contained in:
		
							parent
							
								
									9b218930b1
								
							
						
					
					
						commit
						641f47cb3c
					
				
					 1 changed files with 9 additions and 1 deletions
				
			
		| 
						 | 
					@ -60,8 +60,16 @@ hook global BufCreate .*\.(tera|askama)\.?.* %[
 | 
				
			||||||
 | 
					
 | 
				
			||||||
hook global WinSetOption filetype=rust %[
 | 
					hook global WinSetOption filetype=rust %[
 | 
				
			||||||
  require-module rust
 | 
					  require-module rust
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  add-highlighter window/rust-custom regions
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  require-module html
 | 
					  require-module html
 | 
				
			||||||
  add-highlighter shared/rust/html region -recurse '\{' 'html!\s*\{\K' '(?=\})' ref html
 | 
					  add-highlighter window/rust-custom/html region -recurse '\{' 'html!\s*\{\K' '(?=\})' ref html
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  require-module sql
 | 
				
			||||||
 | 
					  add-highlighter window/rust-custom/sql region '"\K--sql' '"' group
 | 
				
			||||||
 | 
					  add-highlighter window/rust-custom/sql/ fill white
 | 
				
			||||||
 | 
					  add-highlighter window/rust-custom/sql/ ref sql
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
hook global WinSetOption filetype=sql %[
 | 
					hook global WinSetOption filetype=sql %[
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue