lib/opulent/tokens.rb in opulent-1.1.0 vs lib/opulent/tokens.rb in opulent-1.1.5
- old
+ new
@@ -1,8 +1,8 @@
module Opulent
# Opulent Keywords
- Keywords = %i(def block yield require if else elsif unless case when each while until)
+ Keywords = %i(def block yield require if else elsif unless case when each while until doctype)
# @Tokens
class Tokens
# All tokens available within Opulent
#
@@ -26,9 +26,12 @@
# Self enclosing node
self_enclosing: /\A\/(.*)/,
# Definition
def: /\Adef +/,
+
+ # Definition
+ doctype: /\Adoctype +/,
# Require file
require: /\Arequire +/,
# Node Attributes