graphql.min.js 822 B

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