class Gamefic::Syntax
def make_tokens
-
(Array
-)
def make_tokens template.keywords.map.with_index do |word, idx| next word unless word.match?(PARAM_REGEXP) next nil if idx.positive? && template.keywords[idx - 1].match?(PARAM_REGEXP) '([\w\W\s\S]*?)' end.compact end