forked from rosshadden/sublime-xpath
-
Notifications
You must be signed in to change notification settings - Fork 0
/
syntax_test_xpath3.syntax-test
50 lines (46 loc) · 2.56 KB
/
syntax_test_xpath3.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
38
39
40
41
42
43
44
45
46
47
48
49
50
(: SYNTAX TEST "xpath.sublime-syntax" :)
.1 *2**
(:^^ constant.numeric :)
(: ^ keyword.operator :)
(: ^ constant.numeric :)
(: ^ keyword.operator :)
(: ^ variable.parameter :)
+
5mod2+
(:^ constant.numeric :)
(: ^^^ keyword.operator :)
(: ^ constant.numeric :)
/and/ *
(:^^^ variable.parameter :)
(: ^ variable.parameter :)
/ for/../hello.world/ ns :foobar
(:^^^ variable.parameter.xpath :)
(: ^^ keyword.control.flow.xpath :)
(: ^^^^^^^^^^^ variable.parameter.xpath :)
(: ^^^^^^^^^^ variable.parameter.xpath :)
//example[1]/*[starts-with(local-name(), "hello") and./text()and"hello[world][1]"+*
(:^^^^^^^ variable.parameter.xpath :)
(: ^^^ meta.predicate.xpath :)
(: ^ constant.numeric.xpath :)
(: ^ punctuation.section.arguments.begin.xpath.predicate :)
(: ^ punctuation.section.arguments.end.xpath.predicate :)
(: ^ variable.parameter.xpath :)
(: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.predicate.xpath :)
(: ^^^^^^^^^^^^^^^^^^^^^^^ meta.function-call.xpath variable.function :)
(: ^^^^^^^^^^^ meta.function-call.xpath meta.function-call.xpath :)
(: ^ punctuation.section.arguments.begin.xpath.subexpression :)
(: ^ punctuation.section.arguments.end.xpath.subexpression :)
(: ^ punctuation.separator.arguments.xpath :)
(: ^^^^^^^ string.quoted.double.xpath :)
(: ^ punctuation.section.arguments.end.xpath.subexpression :)
(: ^^^ keyword.operator.xpath :)
(: ^ keyword.control.flow.xpath :)
(: ^ punctuation.accessor.location_step.xpath :)
(: ^^^^^^ storage.type.node_type.xpath :)
(: ^^^ keyword.operator.xpath :)
(: ^^^^^^^^^^^^^^^^^ string.quoted.double.xpath :)
(: ^ keyword.operator.xpath :)
(: ^ variable.parameter.xpath :)
///5*+2'hello'
(:^^^^^^^^^^^^ meta.predicate.xpath invalid.illegal.unexpected_token.xpath :)
(: ^ meta.predicate.xpath - invalid :)