forked from rosshadden/sublime-xpath
-
Notifications
You must be signed in to change notification settings - Fork 0
/
syntax_test_xpath2.syntax-test
31 lines (30 loc) · 1.41 KB
/
syntax_test_xpath2.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
(: SYNTAX TEST "xpath.sublime-syntax" :)
(/hello/descendant::world)[1]
(:^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.block.query :)
(:^ punctuation.section.arguments.begin.xpath.subexpression :)
(: ^ punctuation.accessor.location_step :)
(: ^^^^^ variable.parameter :)
(: ^^^^^^^^^^^^ constant.language.axis_name :)
(: ^^^^^ variable.parameter :)
(: ^ punctuation.section.arguments.end.xpath.subexpression :)
(: ^^^ meta.predicate :)
(: ^ punctuation.section.arguments.begin.xpath.predicate :)
(: ^ constant.numeric :)
(: ^ punctuation.section.arguments.end.xpath.predicate :)
/ @ hello/ text () / ancestor :: test :*
(:^ keyword.control.flow :)
(: ^^^^^ keyword.control.flow :)
(: ^^^^ storage.type.node_type :)
(: ^^ storage.type.node_type :)
(: ^^^^^^^^ constant.language.axis_name :)
(: ^^ constant.language.axis_name :)
(: ^^^^ variable.parameter :)
(: ^^ variable.parameter :)
-3.div--(-.2)
(: ^^ constant.numeric :)
(: ^^^ keyword.operator :)
(: ^^^ constant.numeric :)
/*[following::(bar)]
(: ^^^^^^^^^^^ constant.language.axis_name :)
(: ^^^^ invalid.illegal.unexpected_token :)
(: ^^ invalid.illegal.stray-bracket-end :)