mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-12-04 19:48:30 +00:00
628e0a84ab
Adds support for CSS media queries Bug: T167686 Bug: T170999 Change-Id: I553191a9b7ac9ce026a40ef9c317bb1171ec6fc1
40 lines
772 B
JavaScript
40 lines
772 B
JavaScript
ace.define("ace/snippets/graphqlschema",["require","exports","module"], function(require, exports, module) {
|
|
"use strict";
|
|
|
|
exports.snippetText = "# Type Snippet\n\
|
|
trigger type\n\
|
|
snippet type\n\
|
|
type ${1:type_name} {\n\
|
|
${2:type_siblings}\n\
|
|
}\n\
|
|
\n\
|
|
# Input Snippet\n\
|
|
trigger input\n\
|
|
snippet input\n\
|
|
input ${1:input_name} {\n\
|
|
${2:input_siblings}\n\
|
|
}\n\
|
|
\n\
|
|
# Interface Snippet\n\
|
|
trigger interface\n\
|
|
snippet interface\n\
|
|
interface ${1:interface_name} {\n\
|
|
${2:interface_siblings}\n\
|
|
}\n\
|
|
\n\
|
|
# Interface Snippet\n\
|
|
trigger union\n\
|
|
snippet union\n\
|
|
union ${1:union_name} = ${2:type} | ${3: type}\n\
|
|
\n\
|
|
# Enum Snippet\n\
|
|
trigger enum\n\
|
|
snippet enum\n\
|
|
enum ${1:enum_name} {\n\
|
|
${2:enum_siblings}\n\
|
|
}\n\
|
|
";
|
|
exports.scope = "graphqlschema";
|
|
|
|
});
|