-
Notifications
You must be signed in to change notification settings - Fork 1
/
RobotTxt.tmLanguage
79 lines (79 loc) · 2.04 KB
/
RobotTxt.tmLanguage
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>txt</string>
</array>
<key>name</key>
<string>Robot Txt</string>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>2</key>
<dict>
<key>name</key>
<string>storage.robot</string>
</dict>
</dict>
<key>comment</key>
<string>locators for Selenium eg. xpath=, css=</string>
<key>match</key>
<string>(\s{2,})(xpath=|css=|identifier=|id=|name=|dom=|link=|tag=|//)(.+?)(\s{2}|\n)</string>
<key>name</key>
<string>string.robot</string>
</dict>
<dict>
<key>comment</key>
<string>blocks of code, eg. Keywords, Settings</string>
<key>match</key>
<string>(^\*\*\*.*?\*\*\*)|((?<=^\|)\s+\*\*\*.*?\*\*\*)</string>
<key>name</key>
<string>constant.language.robot</string>
</dict>
<dict>
<key>comment</key>
<string>square brackets eg. [Arguments], [Tags]</string>
<key>match</key>
<string>(\s)\[.*?\]</string>
<key>name</key>
<string>storage.type.method.robot</string>
</dict>
<dict>
<key>comment</key>
<string>variables eg. ${some_val}, ${12.23}</string>
<key>match</key>
<string>(\$\{.*?\})|(@\{.*?\})</string>
<key>name</key>
<string>variable.language.robot</string>
</dict>
<dict>
<key>begin</key>
<string>(\s)(?<!\\)#</string>
<key>comment</key>
<string>inline comments</string>
<key>end</key>
<string>$</string>
<key>name</key>
<string>comment.robot</string>
</dict>
<dict>
<key>begin</key>
<string>(^[^ \t\*\n\|]+)|((?<=^\|)\s+[^ \t\*\n\|]+)</string>
<key>comment</key>
<string>Test Case headers</string>
<key>end</key>
<string>\s{2}|\t|$|\s+(?=\|)</string>
<key>name</key>
<string>keyword.control.robot</string>
</dict>
</array>
<key>scopeName</key>
<string>text.robot_txt</string>
<key>uuid</key>
<string>c2d3d999-ca87-4018-abdf-83fbcb9abf5b</string>
</dict>
</plist>