@@ -34,7 +34,7 @@ defmodule Solid.Lexer do
3434 @ doc "Tokenize the input text inside an object"
3535 @ spec tokenize_object ( ParserContext . t ( ) ) ::
3636 { :ok , tokens , ParserContext . t ( ) }
37- | { :error , reason :: term , rest :: binary , loc }
37+ | { :error , reason :: binary , rest :: binary , loc }
3838 def tokenize_object ( % ParserContext { rest: "{{" <> text , line: line , column: column } = context ) do
3939 # The actual whitespace control is handled elsewhere
4040 { text , column } = drop ( text , column + 2 , "-" )
@@ -50,7 +50,7 @@ defmodule Solid.Lexer do
5050 { :ok , tag_name :: binary , ParserContext . t ( ) }
5151 | { :liquid_tag , ParserContext . t ( ) }
5252 | { :end_liquid_tag , ParserContext . t ( ) }
53- | { :error , reason :: term , rest :: binary , loc }
53+ | { :error , reason :: binary , rest :: binary , loc }
5454 | { :error , :not_expected_tag }
5555 def tokenize_tag_start ( context , opts \\ [ ] ) do
5656 allowed_tag_names = Keyword . get ( opts , :allowed_tag_names , [ ] )
@@ -112,7 +112,7 @@ defmodule Solid.Lexer do
112112
113113 @ doc "Tokenize the rest of the tag after the tag name"
114114 @ spec tokenize_tag_end ( ParserContext . t ( ) ) ::
115- { :ok , tokens , ParserContext . t ( ) } | { :error , reason :: term , rest :: binary , loc }
115+ { :ok , tokens , ParserContext . t ( ) } | { :error , reason :: binary , rest :: binary , loc }
116116 def tokenize_tag_end ( context ) do
117117 if context . mode == :liquid_tag do
118118 with { :ok , tokens , text , line , column } <-
@@ -133,7 +133,7 @@ defmodule Solid.Lexer do
133133 { :ok , tag_name :: binary , tokens , ParserContext . t ( ) }
134134 | { :liquid_tag , ParserContext . t ( ) }
135135 | { :end_liquid_tag , ParserContext . t ( ) }
136- | { :error , reason :: term , rest :: binary , loc }
136+ | { :error , reason :: binary , rest :: binary , loc }
137137 | { :error , :not_expected_tag }
138138 def tokenize_tag ( context , opts \\ [ ] ) do
139139 with { :ok , tag_name , context } <- tokenize_tag_start ( context , opts ) ,
0 commit comments