comparison third_party/highlight/languages/graphql.min.js @ 157:2db6253f355d

[ThirdParty] Added highlight library for better readability on blog.
author June Park <parkjune1995@gmail.com>
date Tue, 13 Jan 2026 19:18:47 -0800
parents
children
comparison
equal deleted inserted replaced
156:cd35e600ae34 157:2db6253f355d
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)
12 })();