vendor/bundle/ruby/2.1.0/gems/org-ruby-0.9.12/lib/org-ruby/parser.rb
def store_in_buffer_setting(key, value)
      if key == "OPTIONS"

        # Options are stored in a hash. Special-case.
        value.scan(/([^ ]*):((((\(.*\))))|([^ ])*)/) do |o, v|
          @options[o] = v
        end
      elsif key =~ /^(TODO|SEQ_TODO|TYP_TODO)$/
        # Handle todo keywords specially.
        value.split.each do |keyword|
          keyword.gsub!(/\(.*\)/, "") # Get rid of any parenthetical notes
          keyword = Regexp.escape(keyword)
          next if keyword == "\\|"      # Special character in the todo format, not really a keyword
          @custom_keywords << keyword
        end
      else
        @in_buffer_settings[key] = value
      end
    end
# Stores an in-buffer setting.
Stores an in-buffer setting.
Stores an in - buffer setting .
def store_in_buffer_setting(key, value)
      if key == "OPTIONS"
        value.scan(/([^ ]*):((((\(.*\))))|([^ ])*)/) do |o, v|
          @options[o] = v
        end
      elsif key =~ /^(TODO|SEQ_TODO|TYP_TODO)$/
        value.split.each do |keyword|
          keyword.gsub!(/\(.*\)/, "") 
          keyword = Regexp.escape(keyword)
          next if keyword == "\\|"      
          @custom_keywords << keyword
        end
      else
        @in_buffer_settings[key] = value
      end
    end
def store_in_buffer_setting ( key , value ) if key == "OPTIONS" value . scan ( / ([^ ]*):(((( \( .* \) )))|([^ ])*) / ) do | o , v | @options [ o ] = v end elsif key =~ / ^(TODO|SEQ_TODO|TYP_TODO)$ / value . split . each do | keyword | keyword . gsub! ( / \( .* \) / , "" ) keyword = Regexp . escape ( keyword ) next if keyword == "\\|" @custom_keywords << keyword end else @in_buffer_settings [ key ] = value end end
Stores an in-buffer setting.
Stores an in - buffer setting .
# Options are stored in a hash. Special-case. # Handle todo keywords specially. # Get rid of any parenthetical notes # Special character in the todo format, not really a keyword
key
value