|  |  | @ -7,6 +7,49 @@ return { | 
			
		
	
		
			
				
					|  |  |  | { "nvim-treesitter/nvim-treesitter-textobjects" }, | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | config = function() | 
			
		
	
		
			
				
					|  |  |  | ---@class ParserConfig | 
			
		
	
		
			
				
					|  |  |  | ---@field install_info table | 
			
		
	
		
			
				
					|  |  |  | ---@field filetype string | 
			
		
	
		
			
				
					|  |  |  | local parser_config = require("nvim-treesitter.parsers").get_parser_configs() | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | parser_config.blade = { | 
			
		
	
		
			
				
					|  |  |  | install_info = { | 
			
		
	
		
			
				
					|  |  |  | url = "https://github.com/EmranMR/tree-sitter-blade", | 
			
		
	
		
			
				
					|  |  |  | files = { "src/parser.c" }, | 
			
		
	
		
			
				
					|  |  |  | branch = "main", | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | filetype = "blade", | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | vim.filetype.add({ | 
			
		
	
		
			
				
					|  |  |  | extension = { blade = "blade" }, | 
			
		
	
		
			
				
					|  |  |  | pattern = { | 
			
		
	
		
			
				
					|  |  |  | ['.*%.blade%.php'] = 'blade', | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | }) | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | --- | 
			
		
	
		
			
				
					|  |  |  | ---:TSEditQuery highlights blade | 
			
		
	
		
			
				
					|  |  |  | --- | 
			
		
	
		
			
				
					|  |  |  | ---(directive) @function | 
			
		
	
		
			
				
					|  |  |  | ---(directive_start) @function | 
			
		
	
		
			
				
					|  |  |  | ---(directive_end) @function | 
			
		
	
		
			
				
					|  |  |  | ---(comment) @comment | 
			
		
	
		
			
				
					|  |  |  | ---((parameter) @include (#set! "priority" 110)) | 
			
		
	
		
			
				
					|  |  |  | ---((php_only) @include (#set! "priority" 110)) | 
			
		
	
		
			
				
					|  |  |  | ---((bracket_start) @function (#set! "priority" 120)) | 
			
		
	
		
			
				
					|  |  |  | ---((bracket_end) @function (#set! "priority" 120)) | 
			
		
	
		
			
				
					|  |  |  | ---(keyword) @function | 
			
		
	
		
			
				
					|  |  |  | --- | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | --- | 
			
		
	
		
			
				
					|  |  |  | ---:TSEditQuery injections blade | 
			
		
	
		
			
				
					|  |  |  | ---((text) @injection.content | 
			
		
	
		
			
				
					|  |  |  | ---    (#not-has-ancestor? @injection.content "envoy") | 
			
		
	
		
			
				
					|  |  |  | ---    (#set! injection.combined) | 
			
		
	
		
			
				
					|  |  |  | ---    (#set! injection.language php)) | 
			
		
	
		
			
				
					|  |  |  | --- | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | -- import nvim-treesitter plugin | 
			
		
	
		
			
				
					|  |  |  | local treesitter = require("nvim-treesitter.configs") | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
	
		
			
				
					|  |  | @ -30,6 +73,7 @@ return { | 
			
		
	
		
			
				
					|  |  |  | "gitignore", | 
			
		
	
		
			
				
					|  |  |  | "php", | 
			
		
	
		
			
				
					|  |  |  | "latex", | 
			
		
	
		
			
				
					|  |  |  | "blade", | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | ignore_install = {}, | 
			
		
	
		
			
				
					|  |  |  | modules = {}, | 
			
		
	
	
		
			
				
					|  |  | @ -92,26 +136,6 @@ return { | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | }) | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | ---@class ParserConfig | 
			
		
	
		
			
				
					|  |  |  | ---@field install_info table | 
			
		
	
		
			
				
					|  |  |  | ---@field filetype string | 
			
		
	
		
			
				
					|  |  |  | local parser_config = require("nvim-treesitter.parsers").get_parser_configs() | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | parser_config.blade = { | 
			
		
	
		
			
				
					|  |  |  | install_info = { | 
			
		
	
		
			
				
					|  |  |  | url = "https://github.com/EmranMR/tree-sitter-blade", | 
			
		
	
		
			
				
					|  |  |  | files = { "src/parser.c" }, | 
			
		
	
		
			
				
					|  |  |  | branch = "main", | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | filetype = "blade", | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | 
			
		
	
		
			
				
					|  |  |  | vim.filetype.add({ | 
			
		
	
		
			
				
					|  |  |  | pattern = { | 
			
		
	
		
			
				
					|  |  |  | [".*%.blade%.php"] = "blade", | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | }) | 
			
		
	
		
			
				
					|  |  |  | end, | 
			
		
	
		
			
				
					|  |  |  | }, | 
			
		
	
		
			
				
					|  |  |  | } |