forked from rosshadden/sublime-xpath
-
Notifications
You must be signed in to change notification settings - Fork 0
/
syntax_test_xpath.syntax-test
37 lines (36 loc) · 3.24 KB
/
syntax_test_xpath.syntax-test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
(: SYNTAX TEST "xpath.sublime-syntax" :)
/element1/ns:element2/child::*[position() > 1 and substring-after(., 'hello world') = "test(123)"]/text()
(: <- punctuation.accessor.location_step :)
(:^^^^^^^ variable.parameter :)
(: ^ punctuation.accessor.location_step :)
(: ^^^^^^^^^^^ variable.parameter :)
(: ^^^^^^^ constant.language.axis_name :)
(: ^ variable.parameter :)
(: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.predicate :)
(: ^ - meta.predicate :)
(: ^ punctuation.section.arguments.begin.xpath.predicate :)
(: ^^^^^^^^^^ meta.function-call :)
(: ^^^^^^^^ variable.function :)
(: ^ punctuation.section.arguments.begin.xpath.subexpression :)
(: ^ punctuation.section.arguments.end.xpath.subexpression :)
(: ^ keyword.operator :)
(: ^ constant.numeric :)
(: ^^^ keyword.operator :)
(: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function-call :)
(: ^ - meta.function-call :)
(: ^ keyword.control.flow :)
(: ^ punctuation.separator.arguments :)
(: ^^^^^^^^^^^^^ string.quoted.single :)
(: ^ punctuation.definition.string.begin :)
(: ^ punctuation.definition.string.end :)
(: ^ punctuation.section.arguments.end.xpath.subexpression :)
(: ^ keyword.operator :)
(: ^^^^^^^^^^^ string.quoted.double - meta.function-call :)
(: ^^^^^ - punctuation :)
(: ^ punctuation.definition.string.begin :)
(: ^ punctuation.definition.string.end :)
(: ^ punctuation.section.arguments.end.xpath.predicate :)
(: ^ punctuation.accessor.location_step :)
(: ^^^^^^ storage.type.node_type - punctuation - meta.function-call :)
)]
(:^^ invalid.illegal.stray-bracket-end :)