| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
<!-- |
| 4 |
GraphQL: https://graphql.org/ |
| 5 |
Synatx: https://github.com/graphql/graphql-spec/blob/master/spec/Section%202%20- -%20Language.md |
| 6 |
and: https://github.com/graphql/graphql-spec/blob/master/spec/Appendix%20B%20- -%20Grammar%20Summary.md |
| 7 |
--> |
| 8 |
<language name="GraphQL" section="Other" version="3" kateversion="5.0" extensions="*.graphql" author="Volker Krause ([email protected])" license="MIT"> |
| 9 |
<highlighting> |
| 10 |
<list name="listKeywords"> |
| 11 |
<item>enum</item> |
| 12 |
<item>extend</item> |
| 13 |
<item>fragment</item> |
| 14 |
<item>implements</item> |
| 15 |
<item>input</item> |
| 16 |
<item>interface</item> |
| 17 |
<item>mutation</item> |
| 18 |
<item>on</item> |
| 19 |
<item>query</item> |
| 20 |
<item>scalar</item> |
| 21 |
<item>schema</item> |
| 22 |
<item>subscription</item> |
| 23 |
<item>type</item> |
| 24 |
<item>union</item> |
| 25 |
</list> |
| 26 |
<list name="listConstants"> |
| 27 |
<item>null</item> |
| 28 |
<item>true</item> |
| 29 |
<item>false</item> |
| 30 |
</list> |
| 31 |
<list name="listTypes"> |
| 32 |
<item>Boolean</item> |
| 33 |
<item>Float</item> |
| 34 |
<item>ID</item> |
| 35 |
<item>Int</item> |
| 36 |
<item>String</item> |
| 37 |
</list> |
| 38 |
|
| 39 |
<contexts> |
| 40 |
<context name="ctxNormal" lineEndContext="#stay" attribute="Normal"> |
| 41 |
<DetectChar char="{" beginRegion="RegionBrace"/> |
| 42 |
<DetectChar char="}" endRegion="RegionBrace"/> |
| 43 |
<Float attribute="Float"/> |
| 44 |
<Int attribute="Decimal"/> |
| 45 |
<keyword String="listKeywords" attribute="Keyword"/> |
| 46 |
<keyword String="listConstants" attribute="Constant"/> |
| 47 |
<keyword String="listTypes" attribute="Type"/> |
| 48 |
<StringDetect attribute="String" context="ctxBlockString" String="""""/> |
| 49 |
<DetectChar attribute="String" context="ctxString" char="""/> |
| 50 |
<DetectChar attribute="Comment" context="ctxComment" char="#"/> |
| 51 |
<RegExpr String="\$[_A-Za-z][_0-9A-Za-z]*" attribute="Variable"/> |
| 52 |
<RegExpr String="@[_A-Za-z][_0-9A-Za-z]*" attribute="Directive"/> |
| 53 |
</context> |
| 54 |
|
| 55 |
<context name="ctxString" attribute="String" lineEndContext="#pop"> |
| 56 |
<HlCStringChar attribute="Special Character" context="#stay"/> |
| 57 |
<DetectChar attribute="String" context="#pop" char="""/> |
| 58 |
</context> |
| 59 |
<context name="ctxBlockString" attribute="String" lineEndContext="#stay"> |
| 60 |
<HlCStringChar attribute="Special Character" context="#stay"/> |
| 61 |
<StringDetect attribute="String" context="#pop" String="""""/> |
| 62 |
</context> |
| 63 |
|
| 64 |
<context name="ctxComment" attribute="Comment" lineEndContext="#pop"> |
| 65 |
<DetectSpaces /> |
| 66 |
<IncludeRules context="##Comments"/> |
| 67 |
</context> |
| 68 |
</contexts> |
| 69 |
|
| 70 |
<itemDatas> |
| 71 |
<itemData name="Normal" defStyleNum="dsNormal" spellChecking="false"/> |
| 72 |
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/> |
| 73 |
<itemData name="Variable" defStyleNum="dsVariable" spellChecking="false"/> |
| 74 |
<itemData name="Decimal" defStyleNum="dsDecVal"/> |
| 75 |
<itemData name="Float" defStyleNum="dsFloat"/> |
| 76 |
<itemData name="String" defStyleNum="dsString"/> |
| 77 |
<itemData name="Special Character" defStyleNum="dsChar" spellChecking="false"/> |
| 78 |
<itemData name="Constant" defStyleNum="dsConstant" spellChecking="false"/> |
| 79 |
<itemData name="Type" defStyleNum="dsDataType" spellChecking="false"/> |
| 80 |
<itemData name="Directive" defStyleNum="dsAttribute" spellChecking="false"/> |
| 81 |
<itemData name="Comment" defStyleNum="dsComment"/> |
| 82 |
</itemDatas> |
| 83 |
</highlighting> |
| 84 |
<general> |
| 85 |
<comments> |
| 86 |
<comment name="singleLine" start="#"/> |
| 87 |
</comments> |
| 88 |
</general> |
| 89 |
</language> |
| 90 |
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> |