]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/languages/graphql.min.js
1 /*! `graphql` grammar compiled for Highlight.js 11.11.1 */
2 (()=>{var e
=(()=>{"use strict";return e
=>{const a
=e
.regex
;return{name:"GraphQL",
3 aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{
4 keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],
5 literal:["true","false","null"]},
6 contains:[e
.HASH_COMMENT_MODE
,e
.QUOTE_STRING_MODE
,e
.NUMBER_MODE
,{
7 scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",
8 begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,
9 end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{
10 scope:"symbol",begin:a
.concat(/[_A-Za-z][_0-9A-Za-z]*/,a
.lookahead(/\s*:/)),
11 relevance:0}],illegal:[/[;<']/,/BEGIN/]}}})();hljs
.registerLanguage("graphql",e
)