Skip to content

Commit 466c3d7

Browse files
committed
address copilot feedback on typos/spacing
1 parent 09ac3c1 commit 466c3d7

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

grammars/tree-sitter-ssh-server-config/grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module.exports = grammar({
4848
boolean: $ => choice('yes', 'no'),
4949
number: $ => /\d+/,
5050
operator: $ => token(prec(PREC.OPERATOR, /[-+\^]/)),
51-
string: $ => /[^\r\n,"'\s]+/, /* cannot contains spaces */
51+
string: $ => /[^\r\n,"'\s]+/, /* cannot contain spaces */
5252

5353
_quotedString: $ => /[^\r\n,"']+/, /* can contain spaces */
5454
_doublequotedString: $ => seq('"', alias($._quotedString, $.string), repeat(seq(',', alias($._quotedString, $.string))), '"'),

grammars/tree-sitter-ssh-server-config/test/corpus/valid_expressions.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ Subsystem sftp sftp-server.exe -f LOCAL0 -l DEBUG3
277277
(keyword
278278
(alphanumeric)
279279
(arguments
280-
(string)
280+
(string)
281281
(string)
282282
(string)
283283
(string)
@@ -412,12 +412,12 @@ passwordauthentication no
412412
(match
413413
(criteria
414414
(alpha)
415-
(string)
416-
(string))
417-
(criteria
418-
(alpha)
419-
(string))
420-
(keyword
421-
(alphanumeric)
422-
(arguments
423-
(boolean)))))
415+
(string)
416+
(string))
417+
(criteria
418+
(alpha)
419+
(string))
420+
(keyword
421+
(alphanumeric)
422+
(arguments
423+
(boolean)))))

resources/sshdconfig/src/metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
// keywords that can have multiple argments per line but cannot be repeated over multiple lines,
4+
// keywords that can have multiple arguments per line but cannot be repeated over multiple lines,
55
// as subsequent entries are ignored, should be represented as arrays
66
pub const MULTI_ARG_KEYWORDS: [&str; 17] = [
77
"authenticationmethods",

0 commit comments

Comments
 (0)