mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-11-04 00:51:56 +00:00 
			
		
		
		
	
							
								
								
									
										3
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
								
							@@ -185,3 +185,6 @@
 | 
			
		||||
[submodule "assets/syntaxes/02_Extra/AsciiDoc"]
 | 
			
		||||
	path = assets/syntaxes/02_Extra/AsciiDoc
 | 
			
		||||
	url = https://github.com/asciidoctor/sublimetext-asciidoc.git
 | 
			
		||||
[submodule "assets/syntaxes/02_Extra/GLSL"]
 | 
			
		||||
	path = assets/syntaxes/02_Extra/GLSL
 | 
			
		||||
	url = https://github.com/euler0/sublime-glsl
 | 
			
		||||
 
 | 
			
		||||
@@ -9,6 +9,7 @@
 | 
			
		||||
## Syntaxes
 | 
			
		||||
 | 
			
		||||
- Update AsciiDoc syntax, see #1034 (@rxt1077)
 | 
			
		||||
- GLSL (@caioalonso)
 | 
			
		||||
 | 
			
		||||
## New themes
 | 
			
		||||
## `bat` as a library
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								assets/syntaxes/02_Extra/GLSL
									
									
									
									
										vendored
									
									
										Submodule
									
								
							
							
								
								
								
								
								
							
						
						
									
										1
									
								
								assets/syntaxes/02_Extra/GLSL
									
									
									
									
										vendored
									
									
										Submodule
									
								
							 Submodule assets/syntaxes/02_Extra/GLSL added at 4cd4acfffc
									
								
							@@ -428,6 +428,7 @@ mod tests {
 | 
			
		||||
        assert_eq!(test.syntax_for_file("test.h"), "C++");
 | 
			
		||||
        assert_eq!(test.syntax_for_file("test.sass"), "Sass");
 | 
			
		||||
        assert_eq!(test.syntax_for_file("test.js"), "JavaScript (Babel)");
 | 
			
		||||
        assert_eq!(test.syntax_for_file("test.fs"), "F#");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    #[test]
 | 
			
		||||
 
 | 
			
		||||
@@ -23,6 +23,7 @@ impl<'a> SyntaxMapping<'a> {
 | 
			
		||||
    pub fn builtin() -> SyntaxMapping<'a> {
 | 
			
		||||
        let mut mapping = Self::empty();
 | 
			
		||||
        mapping.insert("*.h", MappingTarget::MapTo("C++")).unwrap();
 | 
			
		||||
        mapping.insert("*.fs", MappingTarget::MapTo("F#")).unwrap();
 | 
			
		||||
        mapping
 | 
			
		||||
            .insert("build", MappingTarget::MapToUnknown)
 | 
			
		||||
            .unwrap();
 | 
			
		||||
 
 | 
			
		||||
@@ -14,6 +14,8 @@ fn no_duplicate_extensions() {
 | 
			
		||||
        // The "Ruby Haml" syntax also comes with a '.sass' extension. However, we make sure
 | 
			
		||||
        // that 'sass' is mapped to the 'Sass' syntax.
 | 
			
		||||
        "sass",
 | 
			
		||||
        // The '.fs' extension appears in F# and GLSL. We default to F#.
 | 
			
		||||
        "fs",
 | 
			
		||||
    ];
 | 
			
		||||
 | 
			
		||||
    let assets = HighlightingAssets::from_binary();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user