diff --git a/packages/site-kit/src/lib/codemirror/index.js b/packages/site-kit/src/lib/codemirror/index.js index 24152606a3..be75f54d3c 100644 --- a/packages/site-kit/src/lib/codemirror/index.js +++ b/packages/site-kit/src/lib/codemirror/index.js @@ -25,13 +25,18 @@ const logic_block_snippets = [ label: '#await :then', type: 'keyword' }), - snippetCompletion('#key ${}}\n\n{/key', { label: '#key', type: 'keyword' }) + snippetCompletion('#key ${}}\n\n{/key', { label: '#key', type: 'keyword' }), + snippetCompletion('#snippet ${}()}\n\n{/snippet', { + label: '#snippet', + type: 'keyword' + }) ]; const special_tag_snippets = [ snippetCompletion('@html ${}', { label: '@html', type: 'keyword' }), snippetCompletion('@debug ${}', { label: '@debug', type: 'keyword' }), - snippetCompletion('@const ${}', { label: '@const', type: 'keyword' }) + snippetCompletion('@const ${}', { label: '@const', type: 'keyword' }), + snippetCompletion('@render ${}()', { label: '@render', type: 'keyword' }) ]; /**