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 +4 -4
- data/lib/iro/ruby/parser.rb +14 -0
- data/lib/iro/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c7446c50b3bd318b680bc03e75042f2dd139c91f1dbc88a0f3a353ee0da064e
|
4
|
+
data.tar.gz: 1700b98774a7e95d935a8ae09637d34d0f2c06852888b1715e912761eb9444ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fa15a07cf8e4e1335121641e52d8ae9faf996231756ac07847658330d3afbba40f8799fb051938f1f471c2c7ce4b4e28861c2eef8cc5eeb8d81e19e79b2a3bf
|
7
|
+
data.tar.gz: 02add21eed14e1e34a4462c919c1cdb883eddaea059563e3ef6e2d1a8abe85a6a9f7d4bc8539aacdc7552299a5a79f733cde9f42caf93543ef79d0d64b9a5bb1
|
data/lib/iro/ruby/parser.rb
CHANGED
@@ -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
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
|
+
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-
|
11
|
+
date: 2018-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|