Skip to content

Commit

Permalink
fix: add G for complete Given statements
Browse files Browse the repository at this point in the history
  • Loading branch information
FilippoTrotter committed Sep 13, 2024
1 parent cc760ee commit 92ec10c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grammar/src/complete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const fullStatementSnippets = fullStatementTemplates.map((x) => {
export function completeStatement(context: CompletionContext) {
const line = context.state.doc.lineAt(context.pos);
let textBefore = context.state.sliceDoc(line.from, context.pos);
const triggerMatch = /T.*$/i.exec(textBefore);
const triggerMatch = /^[GT].*$/i.exec(textBefore);

if (triggerMatch) {
const strings = textBefore.match(/'([^']*)'/g);
Expand Down

0 comments on commit 92ec10c

Please sign in to comment.