mirror of
				https://github.com/vim/vim.git
				synced 2025-10-30 09:47:20 -04:00 
			
		
		
		
	runtime(kivy): update kivy syntax, include ftplugin
Kivy uses "#:" for preprocessing commands (like "#:import ...") which were overridden by the comment syntax. This has been changed, and a commentstring has been added. closes: #15163 Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
		
				
					committed by
					
						 Christian Brabandt
						Christian Brabandt
					
				
			
			
				
	
			
			
			
						parent
						
							b5a92d72eb
						
					
				
				
					commit
					8906e22df5
				
			
							
								
								
									
										1
									
								
								.github/MAINTAINERS
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.github/MAINTAINERS
									
									
									
									
										vendored
									
									
								
							| @@ -180,6 +180,7 @@ runtime/ftplugin/julia.vim		@carlobaldassi | ||||
| runtime/ftplugin/jq.vim	    	        @vito-c | ||||
| runtime/ftplugin/kconfig.vim		@chrisbra | ||||
| runtime/ftplugin/kdl.vim		@imsnif @jiangyinzuo | ||||
| runtime/ftplugin/kivy.vim		@ribru17 | ||||
| runtime/ftplugin/kotlin.vim		@udalov | ||||
| runtime/ftplugin/less.vim		@genoma | ||||
| runtime/ftplugin/liquid.vim		@tpope | ||||
|   | ||||
							
								
								
									
										13
									
								
								runtime/ftplugin/kivy.vim
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								runtime/ftplugin/kivy.vim
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| " Vim filetype plugin | ||||
| " Language:	Kivy | ||||
| " Maintainer:	Riley Bruins <ribru17@gmail.com> | ||||
| " Last Change:	2024 Jul 06 | ||||
|  | ||||
| if exists('b:did_ftplugin') | ||||
|   finish | ||||
| endif | ||||
| let b:did_ftplugin = 1 | ||||
|  | ||||
| setl commentstring=#\ %s | ||||
|  | ||||
| let b:undo_ftplugin = 'setl cms<' | ||||
| @@ -1,7 +1,7 @@ | ||||
| " Vim syntax file | ||||
| " Language:    Kivy | ||||
| " Maintainer:  Corey Prophitt <prophitt.corey@gmail.com> | ||||
| " Last Change: May 29th, 2014 | ||||
| " Last Change: Jul 6th, 2024 | ||||
| " Version:     1 | ||||
| " URL:         http://kivy.org/ | ||||
|  | ||||
| @@ -17,7 +17,7 @@ syn include @pyth $VIMRUNTIME/syntax/python.vim | ||||
|  | ||||
| " Define Kivy syntax | ||||
| syn match kivyPreProc   /#:.*/ | ||||
| syn match kivyComment   /#.*/ | ||||
| syn match kivyComment   /#[^:].*/ | ||||
| syn match kivyRule      /<\I\i*\(,\s*\I\i*\)*>:/ | ||||
| syn match kivyAttribute /\<\I\i*\>/ nextgroup=kivyValue | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user