瀏覽代碼

Ruby: use 'namespaces' instead of 'modules'.

tags/v1.0^2
Ben Kurtovic 10 年之前
父節點
當前提交
8f39ce2f59
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      parsers/ruby/lib/parser.rb

+ 2
- 2
parsers/ruby/lib/parser.rb 查看文件

@@ -35,7 +35,7 @@ module Bitshift

@require_empty = false
@symbols = {
modules: module_hash,
namespaces: module_hash,
classes: class_hash,
functions: function_hash,
vars: var_hash
@@ -71,7 +71,7 @@ module Bitshift
while (name = exp.shift).is_a? Sexp
end

symbols[:modules][name][:assignments] << pos
symbols[:namespaces][name][:assignments] << pos
exp.each_sexp {|s| process(s)}
return exp.clear
end


Loading…
取消
儲存