rtext 0.8.0 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +108 -84
- data/RText_Protocol +47 -4
- data/Rakefile +39 -46
- data/lib/rtext/context_builder.rb +49 -8
- data/lib/rtext/default_completer.rb +212 -163
- data/lib/rtext/default_service_provider.rb +3 -3
- data/lib/rtext/frontend/connector.rb +120 -53
- data/lib/rtext/frontend/context.rb +12 -12
- data/lib/rtext/instantiator.rb +11 -3
- data/lib/rtext/language.rb +5 -5
- data/lib/rtext/serializer.rb +1 -1
- data/lib/rtext/service.rb +264 -253
- data/lib/rtext/tokenizer.rb +1 -1
- data/test/completer_test.rb +606 -606
- data/test/context_builder_test.rb +952 -948
- data/test/frontend/context_test.rb +301 -205
- data/test/instantiator_test.rb +1773 -1691
- data/test/integration/model/test_metamodel3.ect4 +7 -0
- data/test/integration/test.rb +974 -918
- data/test/link_detector_test.rb +287 -287
- data/test/message_helper_test.rb +116 -118
- data/test/serializer_test.rb +1023 -1004
- data/test/tokenizer_test.rb +173 -173
- metadata +18 -19
- data/test/integration/backend.out +0 -13
- data/test/integration/frontend.log +0 -36049
data/lib/rtext/tokenizer.rb
CHANGED
@@ -77,7 +77,7 @@ module Tokenizer
|
|
77
77
|
str = $'
|
78
78
|
result << Token.new(:boolean, $& == "true", idx, col, col+$&.size-1)
|
79
79
|
col += $&.size
|
80
|
-
when /\A([a-zA-Z_]\w*)\b
|
80
|
+
when /\A([a-zA-Z_]\w*)\b:?/
|
81
81
|
str = $'
|
82
82
|
if $&[-1] == ?:
|
83
83
|
result << Token.new(:label, $1, idx, col, col+$&.size-1)
|