Skip to content

Commit 0709df6

Browse files
committed
Adds 'fragment' and 'on' and updates screenshot and readme
1 parent c180def commit 0709df6

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

GraphQL.sublime-syntax

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ contexts:
6666
scope: constant.numeric.graphql
6767

6868
# Symbols
69-
- match: '\:'
70-
scope: constant.other.object.key.graphql
71-
7269
- match: '!'
7370
scope: keyword.control.non-null.graphql
7471

@@ -89,11 +86,17 @@ contexts:
8986
scope: storage.type.interface.graphql
9087

9188
- match: '\bimplements\b'
92-
scope: storage.type.implements.graphql
89+
scope: keyword.operator.implements.graphql
9390

9491
- match: '\binput\b'
9592
scope: storage.type.input.graphql
9693

94+
- match: '\bfragment\b'
95+
scope: storage.type.fragment.graphql
96+
97+
- match: '\bon\b'
98+
scope: storage.type.on.graphql
99+
97100
- match: '\bscalar\b'
98101
scope: storage.type.scalar.graphql
99102

@@ -119,6 +122,12 @@ contexts:
119122
- match: '(?<=input )\w+\b'
120123
scope: meta.type.input
121124

125+
- match: '(?<=fragment )\w+\b'
126+
scope: meta.type.fragment
127+
128+
- match: '(?<=on )\w+\b'
129+
scope: meta.type.fragment.on meta.type.type
130+
122131
- match: '(?<=scalar )\w+\b'
123132
scope: meta.type.scalar
124133

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

22
# GraphQL Language Definition for SublimeText 3
33

4+
**This package supports Sublime Text 3 v3092+.
5+
[If you're looking for support for older versions, look here.](https://github.com/dncrews/GraphQL-SublimeText2)**
6+
47
GraphQL language definition for SublimeText. Finally support syntax highlighting for your GraphQL IDL files!
58

69
![Highlit Screenshot](screenshot.png)

screenshot.png

46.3 KB
Loading

0 commit comments

Comments
 (0)