]>
luflow.net public git repositories - flow-web.git/blob - static/highlight/es/languages/graphql.js
1 /*! `graphql` grammar compiled for Highlight.js 11.11.1 */
2 var hljsGrammar
= (function () {
7 Author: John Foster (GH jf990), and others
8 Description: GraphQL is a query language for APIs
12 /** @type LanguageFn */
13 function graphql(hljs
) {
14 const regex
= hljs
.regex
;
15 const GQL_NAME
= /[_A-Za-z][_0-9A-Za-z]*/;
19 case_insensitive: true,
20 disableAutodetect: false,
44 hljs
.HASH_COMMENT_MODE
,
45 hljs
.QUOTE_STRING_MODE
,
54 begin: /[\!\(\)\:\=\[\]\{\|\}]{1}/,
71 begin: regex
.concat(GQL_NAME
, regex
.lookahead(/\s*:/)),
86 export default hljsGrammar
;