iro 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17b9d1559911f222da6ad34d8ed2fd2e10c7393878e1afb0479763388cfe85cc
4
- data.tar.gz: 8adffa6630c58d1359dd96ecf8c58f5dd91657bbe88cc4dc4881c10a67efaf64
3
+ metadata.gz: 2c7446c50b3bd318b680bc03e75042f2dd139c91f1dbc88a0f3a353ee0da064e
4
+ data.tar.gz: 1700b98774a7e95d935a8ae09637d34d0f2c06852888b1715e912761eb9444ac
5
5
  SHA512:
6
- metadata.gz: 01e158c9e3709c532da7e96c883b849e333520805729f40737ecd14b4f14883dbb505751d006b41ec04f415298800deb2462a35ea081e6a10bdeb4987bdbeeb1
7
- data.tar.gz: 36a267523156f30df332a2f1f848b22a04bd165a951b6323065dae1d898f5133004cbf35decdc5241166f0fbe0d9b4bae2fab63ce4fa358852fee9487f657599
6
+ metadata.gz: 4fa15a07cf8e4e1335121641e52d8ae9faf996231756ac07847658330d3afbba40f8799fb051938f1f471c2c7ce4b4e28861c2eef8cc5eeb8d81e19e79b2a3bf
7
+ data.tar.gz: 02add21eed14e1e34a4462c919c1cdb883eddaea059563e3ef6e2d1a8abe85a6a9f7d4bc8539aacdc7552299a5a79f733cde9f42caf93543ef79d0d64b9a5bb1
@@ -65,6 +65,20 @@ module Iro
65
65
  }[str] || 'Keyword'
66
66
  end
67
67
 
68
+ def on_def(name, params, body)
69
+ super.tap do |result|
70
+ pos = name.position
71
+ register_token 'rubyFunction', [pos[0], pos[1]+1, name.content.size]
72
+ end
73
+ end
74
+
75
+ def on_defs(recv, period, name, params, body)
76
+ super.tap do |result|
77
+ pos = name.position
78
+ register_token 'rubyFunction', [pos[0], pos[1]+1, name.content.size]
79
+ end
80
+ end
81
+
68
82
  def traverse(node)
69
83
  if node.kw_type?
70
84
  str = node.content
data/lib/iro/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Iro
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masataka Pocke Kuwabara
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-09 00:00:00.000000000 Z
11
+ date: 2018-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler