mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Use zero as the minimum value of getGrammarPathScore
This way, we can determine if the grammar matches a buffer in any way by checking for a positive score.
This commit is contained in:
@@ -213,7 +213,7 @@ class GrammarRegistry {
|
||||
if (process.platform === 'win32') { filePath = filePath.replace(/\\/g, '/') }
|
||||
|
||||
const pathComponents = filePath.toLowerCase().split(PATH_SPLIT_REGEX)
|
||||
let pathScore = -1
|
||||
let pathScore = 0
|
||||
|
||||
let customFileTypes
|
||||
if (this.config.get('core.customFileTypes')) {
|
||||
|
||||
Reference in New Issue
Block a user