rtext 0.7.0 → 0.8.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
@@ -144,6 +144,22 @@ def test_only_newline
144
144
  )
145
145
  end
146
146
 
147
+ def test_linebreak
148
+ assert_tokens [
149
+ Token.new(:identifier, "TestNode", 2, 1, 8),
150
+ Token.new(:identifier, "someNode", 2, 10, 17),
151
+ Token.new(",", nil, 2, 18, 18),
152
+ Token.new(:newline, nil, 2, nil, nil),
153
+ Token.new(:label, "label", 3, 3, 8),
154
+ Token.new(:identifier, "x", 3, 10, 10),
155
+ Token.new(:newline, nil, 3, nil, nil),
156
+ ], %Q(
157
+ TestNode someNode,
158
+ label: x
159
+ )
160
+
161
+ end
162
+
147
163
  def do_tokenize(str)
148
164
  tokenize(str, /\A\/[\/\w]+/)
149
165
  end
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
5
- prerelease:
4
+ version: 0.8.0.pre1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Martin Thiede
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-08-30 00:00:00.000000000 Z
11
+ date: 2015-02-06 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rgen
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.6.1
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 0.6.1
30
27
  description: RText can be used to derive textual languages from an RGen metamodel
@@ -60,6 +57,7 @@ files:
60
57
  - lib/rtext/tokenizer.rb
61
58
  - test/completer_test.rb
62
59
  - test/context_builder_test.rb
60
+ - test/frontend/context_test.rb
63
61
  - test/instantiator_test.rb
64
62
  - test/integration/backend.out
65
63
  - test/integration/crash_on_request_editor.rb
@@ -90,6 +88,7 @@ files:
90
88
  - Rakefile
91
89
  homepage: http://ruby-gen.org
92
90
  licenses: []
91
+ metadata: {}
93
92
  post_install_message:
94
93
  rdoc_options:
95
94
  - --main
@@ -99,21 +98,19 @@ rdoc_options:
99
98
  require_paths:
100
99
  - lib
101
100
  required_ruby_version: !ruby/object:Gem::Requirement
102
- none: false
103
101
  requirements:
104
- - - ! '>='
102
+ - - '>='
105
103
  - !ruby/object:Gem::Version
106
104
  version: '0'
107
105
  required_rubygems_version: !ruby/object:Gem::Requirement
108
- none: false
109
106
  requirements:
110
- - - ! '>='
107
+ - - '>'
111
108
  - !ruby/object:Gem::Version
112
- version: '0'
109
+ version: 1.3.1
113
110
  requirements: []
114
111
  rubyforge_project:
115
- rubygems_version: 1.8.24
112
+ rubygems_version: 2.0.3
116
113
  signing_key:
117
- specification_version: 3
114
+ specification_version: 4
118
115
  summary: Ruby Textual Modelling
119
116
  test_files: []