From 3e4abc9ac382b6fc7a88316a700652404b6fb9f7 Mon Sep 17 00:00:00 2001 From: David Neto Date: Fri, 8 Nov 2019 14:12:39 -0500 Subject: [PATCH] Try to fix go linter: exported constant comment (#3026) The linter wants the comment on an exported constant to begin with the name of the constant. --- utils/vscode/src/grammar/grammar.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/utils/vscode/src/grammar/grammar.go b/utils/vscode/src/grammar/grammar.go index 183f1b1b..857a193e 100644 --- a/utils/vscode/src/grammar/grammar.go +++ b/utils/vscode/src/grammar/grammar.go @@ -70,10 +70,12 @@ type Parameter struct { type Quantifier string const ( - // The quantified term may appear exactly once. - Once Quantifier = "" - // The quantified term may appear zero or one time; an optional term. + // Once indicates the quantified term may appear exactly once. + Once Quantifier = "" + // ZeroOrOnce indicates the quantified term may appear zero or one + // time; an optional term. ZeroOrOnce Quantifier = "?" - // The quantified term may appear any number of times. + // ZeroOrMany indicates the quantified term may appear any number of + // times. ZeroOrMany Quantifier = "*" )