Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/sublime_syntax_convertor/convertor.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
require "yaml"

module SublimeSyntaxConvertor
class Convertor
include Formatter
attr_reader :syntax

def initialize(lang)
@lang = Plist.parse_xml(lang)
if @lang.nil?
@lang = YAML.load(lang)
end
@repository = @lang.fetch('repository', {})
@patterns = @lang.fetch('patterns', [])
@syntax = {}
Expand Down