c_lexer 2.6.2.0.1 → 2.6.2.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/ext/lexer/lexer.rl CHANGED
@@ -90,6 +90,7 @@ static VALUE lexer_initialize(VALUE self, VALUE version)
90
90
  Lexer* lexer = GET_LEXER(self);
91
91
 
92
92
  lexer->version = NUM2INT(version);
93
+ rb_iv_set(self, "@context", Qnil);
93
94
 
94
95
  return lexer_reset(0, NULL, self);
95
96
  }
@@ -955,6 +956,8 @@ void Init_lexer()
955
956
  rb_define_method(c_Lexer, "source_buffer=", lexer_set_source_buffer, 1);
956
957
  rb_define_method(c_Lexer, "force_utf32=", lexer_set_force_utf32, 1);
957
958
 
959
+ rb_define_attr(c_Lexer, "context", 1, 1);
960
+
958
961
  VALUE m_Source = rb_const_get(m_Parser, rb_intern("Source"));
959
962
  comment_klass = rb_const_get(m_Source, rb_intern("Comment"));
960
963
  diagnostic_klass = rb_const_get(m_Parser, rb_intern("Diagnostic"));
@@ -1,3 +1,3 @@
1
1
  module CLexer
2
- VERSION = '2.6.2.0.1'
2
+ VERSION = '2.6.2.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: c_lexer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2.0.1
4
+ version: 2.6.2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Bylich
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.6.2.0
33
+ version: 2.6.2.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 2.6.2.0
40
+ version: 2.6.2.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement