lib/wlang/dialects/standard_dialects.rb in wlang-0.9.2 vs lib/wlang/dialects/standard_dialects.rb in wlang-0.10.0
- old
+ new
@@ -25,10 +25,17 @@
ruby_require "wlang/dialects/ruby_dialect" do
encoders WLang::EncoderSet::Ruby
end
end
+# yaml dialect
+WLang::dialect("yaml", ".yaml", ".yml") do
+ ruby_require "wlang/dialects/yaml_dialect" do
+ encoders WLang::EncoderSet::YAML
+ end
+end
+
# sql dialect
WLang::dialect("sql", ".sql") do
ruby_require "wlang/dialects/sql_dialect" do
encoders WLang::EncoderSet::SQL
end
@@ -70,16 +77,36 @@
# Dummy dialect, no tag at all
dialect("dummy") do
end
+ # wlang/ruby dialect
+ dialect("hosted") do
+ ruby_require "wlang/dialects/hosted_dialect" do
+ encoders WLang::EncoderSet::Hosted
+ rules WLang::RuleSet::Basic
+ rules WLang::RuleSet::Encoding
+ rules WLang::RuleSet::Imperative
+ rules WLang::RuleSet::Context
+ rules WLang::RuleSet::Hosted
+ end
+ end
+
# wlang/active-string dialect
dialect("active-string") do
rules WLang::RuleSet::Basic
rules WLang::RuleSet::Imperative
end
+ # wlang/active-text dialect
+ dialect("active-text") do
+ rules WLang::RuleSet::Basic
+ rules WLang::RuleSet::Imperative
+ rules WLang::RuleSet::Buffering
+ rules WLang::RuleSet::Context
+ end
+
# wlang/uri dialect
dialect("uri") do
rules WLang::RuleSet::Basic
end
@@ -88,11 +115,25 @@
ruby_require "wlang/dialects/ruby_dialect" do
encoders WLang::EncoderSet::Ruby
rules WLang::RuleSet::Basic
rules WLang::RuleSet::Encoding
rules WLang::RuleSet::Imperative
+ rules WLang::RuleSet::Buffering
rules WLang::RuleSet::Context
rules WLang::RuleSet::Ruby
+ end
+ end
+
+ # wlang/ruby dialect
+ dialect("yaml", ".wyaml", ".wyml") do
+ ruby_require "wlang/dialects/yaml_dialect" do
+ encoders WLang::EncoderSet::YAML
+ rules WLang::RuleSet::Basic
+ rules WLang::RuleSet::Encoding
+ rules WLang::RuleSet::Imperative
+ rules WLang::RuleSet::Buffering
+ rules WLang::RuleSet::Context
+ rules WLang::RuleSet::YAML
end
end
# wlang/ruby dialect
dialect("xhtml", ".wtpl", ".whtml") do