module Syntax
def all
def all lang_dir = File.join(File.dirname(__FILE__), "syntax", "lang") Dir["#{lang_dir}/*.rb"].map { |path| File.basename(path, ".rb") } end
def load( syntax )
found, or if it cannot be loaded for whatever reason, the Default syntax
Load the implementation of the requested syntax. If the syntax cannot be
def load( syntax ) begin require "syntax/lang/#{syntax}" rescue LoadError end SYNTAX[ syntax ].new end