Mercurial
comparison third_party/highlight/languages/graphql.min.js @ 173:827c6ac504cd hg-web
Merged in default here.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 19 Jan 2026 18:59:10 -0800 |
| parents | 2db6253f355d |
| children |
comparison
equal
deleted
inserted
replaced
| 151:c033667da5f9 | 173:827c6ac504cd |
|---|---|
| 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 })(); |