From ddb45566581147385735b7091062152f43c437af Mon Sep 17 00:00:00 2001 From: octref Date: Tue, 17 Mar 2015 15:27:02 -0400 Subject: [PATCH] Don't tokenize on NullGrammar For file format that Atom doesn't recognize as a programming language, such as log files, skip Tokenization since no syntax highlighting should be done. --- src/tokenized-buffer.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tokenized-buffer.coffee b/src/tokenized-buffer.coffee index 67e4deb87..b068e587b 100644 --- a/src/tokenized-buffer.coffee +++ b/src/tokenized-buffer.coffee @@ -138,6 +138,7 @@ class TokenizedBuffer extends Model tokenizeInBackground: -> return if not @visible or @pendingChunk or not @isAlive() + return if @grammar is @grammar.registry.nullGrammar @pendingChunk = true _.defer => @pendingChunk = false