Skip to content

Commit fc8be25

Browse files
Thiagolino8teemingcOcean-OS
authored
feat: add #snippet and @render completions (#1377)
Co-authored-by: Tee Ming <[email protected]> Co-authored-by: ComputerGuy <[email protected]>
1 parent b0197b1 commit fc8be25

File tree

1 file changed

+7
-2
lines changed
  • packages/site-kit/src/lib/codemirror

1 file changed

+7
-2
lines changed

packages/site-kit/src/lib/codemirror/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,18 @@ const logic_block_snippets = [
2525
label: '#await :then',
2626
type: 'keyword'
2727
}),
28-
snippetCompletion('#key ${}}\n\n{/key', { label: '#key', type: 'keyword' })
28+
snippetCompletion('#key ${}}\n\n{/key', { label: '#key', type: 'keyword' }),
29+
snippetCompletion('#snippet ${}()}\n\n{/snippet', {
30+
label: '#snippet',
31+
type: 'keyword'
32+
})
2933
];
3034

3135
const special_tag_snippets = [
3236
snippetCompletion('@html ${}', { label: '@html', type: 'keyword' }),
3337
snippetCompletion('@debug ${}', { label: '@debug', type: 'keyword' }),
34-
snippetCompletion('@const ${}', { label: '@const', type: 'keyword' })
38+
snippetCompletion('@const ${}', { label: '@const', type: 'keyword' }),
39+
snippetCompletion('@render ${}()', { label: '@render', type: 'keyword' })
3540
];
3641

3742
/**

0 commit comments

Comments
 (0)