mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Throw error if grammar cannot be resolved for path
This commit is contained in:
@@ -55,6 +55,7 @@ class LanguageMode
|
||||
@grammar = @buffer.project.grammarForFilePath(path, pathContents)
|
||||
else
|
||||
@grammar = syntax.grammarForFilePath(path, pathContents)
|
||||
throw new Error("No grammar found for path: #{path}") unless @grammar
|
||||
previousGrammar isnt @grammar
|
||||
|
||||
isQuote: (string) ->
|
||||
|
||||
Reference in New Issue
Block a user