mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-22 08:28:41 +03:00
Default fileTypes to empty array when undefined
This is the case for certain grammars in the Java TextMate bundle.
This commit is contained in:
parent
2001cc330f
commit
b675e5b4ba
@ -26,6 +26,7 @@ class TextMateGrammar
|
||||
@initialRule = new Rule(this, {@scopeName, patterns})
|
||||
@repository = {}
|
||||
@firstLineRegex = new OnigRegExp(firstLineMatch) if firstLineMatch
|
||||
@fileTypes ?= []
|
||||
|
||||
for name, data of repository
|
||||
data = {patterns: [data], tempName: name} if data.begin? or data.match?
|
||||
|
Loading…
Reference in New Issue
Block a user