From 858071d54e5929a58a7592e0984c005c831400d9 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 9 Aug 2018 17:48:08 -0700 Subject: [PATCH] :shirt: --- src/grammar-registry.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/grammar-registry.js b/src/grammar-registry.js index 60d656afa..d1e9453df 100644 --- a/src/grammar-registry.js +++ b/src/grammar-registry.js @@ -215,7 +215,6 @@ class GrammarRegistry { // If multiple grammars match by one of the above criteria, break ties. if (score > 0) { - // Prefer either TextMate or Tree-sitter grammars based on the user's settings. if (grammar instanceof TreeSitterGrammar) { if (this.config.get('core.useTreeSitterParsers')) { @@ -296,7 +295,6 @@ class GrammarRegistry { if (grammar.firstLineRegex.testSync) { return grammar.firstLineRegex.testSync(prefix) } else { - return grammar.firstLineRegex.test(prefix) } } else {