From b7bb1092949d2f491d3bc97c1c32a7b0fd738487 Mon Sep 17 00:00:00 2001 From: Jim Date: Mon, 18 Sep 2023 16:42:14 -0400 Subject: [PATCH] fixup! chore: update coverage --- coverage/coverage.html | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/coverage/coverage.html b/coverage/coverage.html index 7c48b93..4e99bbf 100644 --- a/coverage/coverage.html +++ b/coverage/coverage.html @@ -316,11 +316,15 @@ "unicode" ) +// Delimiter used to quote strings +type Delimiter rune + const ( - doubleQuote = '"' - singleQuote = '\'' - backtick = '`' - backslash = '\\' + DoubleQuote Delimiter = '"' + SingleQuote Delimiter = '\'' + Backtick Delimiter = '`' + + backslash = '\\' ) type lexStateFunc func(*lexer) (lexStateFunc, error) @@ -672,8 +676,8 @@ } func isDelimiter(r rune) bool { - switch r { - case doubleQuote, singleQuote, backtick: + switch Delimiter(r) { + case DoubleQuote, SingleQuote, Backtick: return true default: return false