feat: add support for the swift language
This commit is contained in:
		
							parent
							
								
									e2da264133
								
							
						
					
					
						commit
						ddc1c02dbd
					
				
					 3 changed files with 13 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -60,6 +60,7 @@ pub fn build(b: *std.Build) void {
 | 
			
		|||
        ts_queryfile(b, tree_sitter_dep, "tree-sitter-scala/queries/highlights.scm"),
 | 
			
		||||
        ts_queryfile(b, tree_sitter_dep, "tree-sitter-scheme/queries/highlights.scm"),
 | 
			
		||||
        ts_queryfile(b, tree_sitter_dep, "tree-sitter-superhtml/tree-sitter-superhtml/queries/highlights.scm"),
 | 
			
		||||
        ts_queryfile(b, tree_sitter_dep, "tree-sitter-swift/queries/highlights.scm"),
 | 
			
		||||
        ts_queryfile(b, tree_sitter_dep, "tree-sitter-toml/queries/highlights.scm"),
 | 
			
		||||
        ts_queryfile(b, tree_sitter_dep, "tree-sitter-typescript/queries/highlights.scm"),
 | 
			
		||||
        ts_queryfile(b, tree_sitter_dep, "tree-sitter-typst/queries/typst/highlights.scm"),
 | 
			
		||||
| 
						 | 
				
			
			@ -90,6 +91,7 @@ pub fn build(b: *std.Build) void {
 | 
			
		|||
        ts_queryfile(b, tree_sitter_dep, "tree-sitter-purescript/vim_queries/injections.scm"),
 | 
			
		||||
        ts_queryfile(b, tree_sitter_dep, "tree-sitter-rust/queries/injections.scm"),
 | 
			
		||||
        ts_queryfile(b, tree_sitter_dep, "tree-sitter-superhtml/tree-sitter-superhtml/queries/injections.scm"),
 | 
			
		||||
        ts_queryfile(b, tree_sitter_dep, "tree-sitter-swift/queries/injections.scm"),
 | 
			
		||||
        ts_queryfile(b, tree_sitter_dep, "tree-sitter-typst/queries/typst/injections.scm"),
 | 
			
		||||
        ts_queryfile(b, tree_sitter_dep, "tree-sitter-vim/queries/vim/injections.scm"),
 | 
			
		||||
        ts_queryfile(b, tree_sitter_dep, "tree-sitter-zig/queries/injections.scm"),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,8 +4,8 @@
 | 
			
		|||
 | 
			
		||||
    .dependencies = .{
 | 
			
		||||
        .@"tree-sitter" = .{
 | 
			
		||||
            .url = "https://github.com/neurocyte/tree-sitter/releases/download/master-6805196e3061de9324c09b2829a3ffd44ff51217/source.tar.gz",
 | 
			
		||||
            .hash = "1220698603b3a7f18603872d906940a599c524e7ecb37562feaa07f995d9c3b38f84",
 | 
			
		||||
            .url = "https://github.com/neurocyte/tree-sitter/releases/download/master-74949eca4342fcf7c9edef0dd611f6fb7bfa662f/source.tar.gz",
 | 
			
		||||
            .hash = "12207077255900fc581f9ee88bdb2f7baa7c2bce32ba0b3c2c5a5207c7168fb6f56e",
 | 
			
		||||
        },
 | 
			
		||||
    },
 | 
			
		||||
    .paths = .{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -344,6 +344,15 @@ pub const @"ssh-config" = .{
 | 
			
		|||
    .comment = "#",
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
pub const swift = .{
 | 
			
		||||
    .color = 0xf05138,
 | 
			
		||||
    .icon = "",
 | 
			
		||||
    .extensions = .{ "swift" },
 | 
			
		||||
    .comment = "//",
 | 
			
		||||
    .language_server = .{"sourcekit-lsp"},
 | 
			
		||||
    .formatter = .{ "swift-format" },
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
pub const toml = .{
 | 
			
		||||
    .extensions = .{ "toml", "ini" },
 | 
			
		||||
    .comment = "#",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue