MCPcopy Index your code
hub / github.com/REditorSupport/vscode-R / isBracket

Function isBracket

src/selection.ts:104–110  ·  view source on GitHub ↗
(c: string, lookingForward: boolean)

Source from the content-addressed store, hash-verified

102}
103
104function isBracket(c: string, lookingForward: boolean) {
105 if (lookingForward) {
106 return ((c === '(') || (c === '[') || (c === '{'));
107 }
108
109 return ((c === ')') || (c === ']') || (c === '}'));
110}
111
112function isQuote(c: string) {
113 return c === '"' || c === '\'' || c === '`';

Callers 1

extendSelectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected