Mercurial
view third_party/highlight/es/languages/graphql.min.js @ 180:3a4ebe4552bf
Remove playground file as it is not needed to be tracked.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Mon, 19 Jan 2026 08:05:02 -0800 |
| parents | 2db6253f355d |
| children |
line wrap: on
line source
/*! `graphql` grammar compiled for Highlight.js 11.11.1 */ var hljsGrammar=(()=>{"use strict";return e=>{const a=e.regex;return{ name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1, keywords:{ keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"], literal:["true","false","null"]}, contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{ scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation", begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/, end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{ scope:"symbol",begin:a.concat(/[_A-Za-z][_0-9A-Za-z]*/,a.lookahead(/\s*:/)), relevance:0}],illegal:[/[;<']/,/BEGIN/]}}})();export default hljsGrammar;