From 30d3e455d18aa2ec09e486dc67e7a0c6e8bfd68d Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Fri, 28 Feb 2014 23:18:23 +0100 Subject: [PATCH] Use squote/dquote everywhere in the lexer. --- lib/oga/lexer.rl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/oga/lexer.rl b/lib/oga/lexer.rl index 4a42841..f1dc58b 100644 --- a/lib/oga/lexer.rl +++ b/lib/oga/lexer.rl @@ -229,14 +229,15 @@ module Oga '<' => { t(:T_SMALLER) }; '>' => { t(:T_GREATER) }; '/' => { t(:T_SLASH) }; - '"' => { t(:T_DQUOTE) }; - "'" => { t(:T_SQUOTE) }; '-' => { t(:T_DASH) }; ']' => { t(:T_RBRACKET) }; '[' => { t(:T_LBRACKET) }; ':' => { t(:T_COLON) }; '!' => { t(:T_BANG) }; '=' => { t(:T_EQUALS) }; + + dquote => { t(:T_DQUOTE) }; + squote => { t(:T_SQUOTE) }; *|; }%% end # Lexer