Skip to content

Commit a0a911b

Browse files
author
Michael Lyons
committed
Prototype LIKE into QUERY strings
1 parent 5b73f19 commit a0a911b

File tree

1 file changed

+22
-26
lines changed

1 file changed

+22
-26
lines changed

Google Sheets Query Language.sublime-syntax

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,14 @@ contexts:
8888
expect-like-string:
8989
- match: '"'
9090
scope: punctuation.definition.string.begin.google
91-
push:
92-
- meta_include_prototype: false
93-
- meta_scope: meta.string.google string.quoted.double.google
94-
- match: '"'
95-
scope: punctuation.definition.string.end.google
96-
pop: 1
97-
- include: like-wildcards
91+
push: string-body-double
92+
with_prototype:
93+
- include: like-wildcards
9894
- match: \'
9995
scope: punctuation.definition.string.begin.google
100-
push:
101-
- meta_include_prototype: false
102-
- meta_scope: meta.string.google string.quoted.single.google
103-
- match: \'
104-
scope: punctuation.definition.string.end.google
105-
pop: 1
106-
- include: like-wildcards
96+
push: string-body-single
97+
with_prototype:
98+
- include: like-wildcards
10799
- include: else-pop
108100

109101
like-wildcards:
@@ -300,20 +292,24 @@ contexts:
300292
strings:
301293
- match: '"'
302294
scope: punctuation.definition.string.begin.google
303-
push:
304-
- meta_include_prototype: false
305-
- meta_scope: meta.string.google string.quoted.double.google
306-
- match: '"'
307-
scope: punctuation.definition.string.end.google
308-
pop: 1
295+
push: string-body-double
309296
- match: \'
310297
scope: punctuation.definition.string.begin.google
311-
push:
312-
- meta_include_prototype: false
313-
- meta_scope: meta.string.google string.quoted.single.google
314-
- match: \'
315-
scope: punctuation.definition.string.end.google
316-
pop: 1
298+
push: string-body-single
299+
300+
string-body-double:
301+
- meta_include_prototype: false
302+
- meta_scope: meta.string.google string.quoted.double.google
303+
- match: '"'
304+
scope: punctuation.definition.string.end.google
305+
pop: 1
306+
307+
string-body-single:
308+
- meta_include_prototype: false
309+
- meta_scope: meta.string.google string.quoted.single.google
310+
- match: \'
311+
scope: punctuation.definition.string.end.google
312+
pop: 1
317313

318314
numbers:
319315
- match: -?\d+(\.)\d*|-?(\.)\d+

0 commit comments

Comments
 (0)