mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:22:45 +00:00 
			
		
		
		
	HackStudio: Use Syntax::Language instead of our own one
The one behavior difference here is that the statusbar used to display "Unknown" for unknown file types, and "Markdown" for md, but we now display "Plain Text" for all file types without syntax highlighters.
This commit is contained in:
		
							parent
							
								
									ffce6cc977
								
							
						
					
					
						commit
						08c1effc04
					
				
					 9 changed files with 35 additions and 160 deletions
				
			
		|  | @ -24,8 +24,7 @@ CodeDocument::CodeDocument(DeprecatedString const& file_path, Client* client) | |||
|     , m_file_path(file_path) | ||||
| { | ||||
|     auto lexical_path = LexicalPath(file_path); | ||||
|     m_language = language_from_file(lexical_path); | ||||
|     m_language_name = language_name_from_file(lexical_path); | ||||
|     m_language = Syntax::language_from_filename(lexical_path); | ||||
| } | ||||
| 
 | ||||
| CodeDocument::CodeDocument(Client* client) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sam Atkins
						Sam Atkins