mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Forgot to delete text-mate-bundle.coffee
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
_ = require 'underscore'
|
||||
fs = require 'fs'
|
||||
plist = require 'plist'
|
||||
$ = require 'jquery'
|
||||
|
||||
TextMateGrammar = require 'text-mate-grammar'
|
||||
|
||||
module.exports =
|
||||
class TextMateBundle
|
||||
@grammarsByFileType: {}
|
||||
@grammarsByScopeName: {}
|
||||
@grammars: []
|
||||
|
||||
@load: (name) ->
|
||||
bundle = new TextMateBundle(require.resolve(name))
|
||||
syntax.addGrammar(grammar) for grammar in bundle.grammars
|
||||
bundle
|
||||
|
||||
grammars: null
|
||||
|
||||
constructor: (@path) ->
|
||||
|
||||
getSyntaxesPath: ->
|
||||
fs.join(@path, "Syntaxes")
|
||||
Reference in New Issue
Block a user