mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	compiler: Allow loading grammars from syntaxes folder (#4015)
				
					
				
			This commit is contained in:
		| @@ -122,7 +122,7 @@ func isValidGrammar(path string, info os.FileInfo) bool { | |||||||
| 	case ".tmlanguage", ".yaml-tmlanguage": | 	case ".tmlanguage", ".yaml-tmlanguage": | ||||||
| 		return true | 		return true | ||||||
| 	case ".cson", ".json": | 	case ".cson", ".json": | ||||||
| 		return strings.HasSuffix(dir, "/grammars") | 		return strings.HasSuffix(dir, "/grammars") || strings.HasSuffix(dir, "/syntaxes") | ||||||
| 	default: | 	default: | ||||||
| 		return false | 		return false | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user