MCPcopy Create free account
hub / github.com/REditorSupport/vscode-R / doesLineEndInOperator

Function doesLineEndInOperator

src/lineCache.ts:70–75  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

68}
69
70function doesLineEndInOperator(text: string) {
71 const endingOperatorIndex = text.search(/(\(|,|\+|!|\$|\^|&|\*|-|=|:|~|\||\/|\?|<|>|%.*%)(\s*|\s*#.*)$/);
72 const spacesOnlyIndex = text.search(/^\s*$/);
73
74 return ((endingOperatorIndex >= 0) || (spacesOnlyIndex >= 0));
75}

Callers 1

addLineToCacheMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected