Expect a value delimiter (" or ').

If the last read byte is a delimiter, return the delimiter and read the next byte. Else, return -1.

Property definitions

saxophonit $ XophonLexer :: expect_delimiter
	# Expect a value delimiter (`"` or `'`).
	#
	# If the last read byte is a delimiter, return the delimiter and
	# read the next byte. Else, return `-1`.
	fun expect_delimiter: Int do
		if accept('"') then
			return '"'.code_point
		else if accept('\'') then
			return '\''.code_point
		else
			fire_unexpected_char(". Expecting `\"` or `'`")
			return -1
		end
	end
lib/saxophonit/lexer.nit:46,2--59,4