lib/yard/parser/ruby/legacy/ruby_lex.rb in yard-0.4.0 vs lib/yard/parser/ruby/legacy/ruby_lex.rb in yard-0.5.0
- old
+ new
@@ -12,11 +12,10 @@
EXPR_DOT = :EXPR_DOT
EXPR_CLASS = :EXPR_CLASS
class Token
NO_TEXT = "??".freeze
- attr :text
def initialize(line_no, char_no)
@line_no = line_no
@char_no = char_no
@text = NO_TEXT
@@ -455,12 +454,12 @@
@skip_space = false
@read_auto_clean_up = false
@exception_on_syntax_error = true
end
- attr :skip_space, true
- attr :read_auto_clean_up, true
- attr :exception_on_syntax_error, true
+ attr_accessor :skip_space
+ attr_accessor :read_auto_clean_up
+ attr_accessor :exception_on_syntax_error
attr :indent
# io functions
def line_no