-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathrobot.yaml
More file actions
53 lines (46 loc) · 1.6 KB
/
Copy pathrobot.yaml
File metadata and controls
53 lines (46 loc) · 1.6 KB
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
filetype: robot
detect:
filename: "\\.robot"
rules:
# built-in objects
- constant: "\\b()\\b"
# built-in functions
- identifier: "(?i)\\b(Should Be True|Should be False|Should Not be true|Should Contain|Should Be Equal As Integers|Should Be Equal|Run And Return RC And Output|Run And Return RC|Run And Return Output|Run Keyword And Continue On Failure|Run Keyword|Run|Start Process|Wait for Process)\\b"
# types
- type: "\\&\\{.*\\}"
# definitions
- identifier: "\\*\\*\\*.*\\*\\*\\*"
# keywords
- statement: "(?i)\\b(Library|Documentation|Tags|Sleep|Evaluate|Log|Arguments)\\b"
# decorators
- preproc: "\\$\\{[\\S]*"
# numbers
- constant.number: "\\b[0-9](_?[0-9])*(\\.([0-9](_?[0-9])*)?)?(e[0-9](_?[0-9])*)?\\b" # decimal
- constant.number: "\\b0b(_?[01])+\\b" # bin
- constant.number: "\\b0o(_?[0-7])+\\b" # oct
- constant.number: "\\b0x(_?[0-9a-fA-F])+\\b" # hex
- constant.string:
start: "\"\"\""
end: "\"\"\""
rules: []
- constant.string:
start: "'''"
end: "'''"
rules: []
- constant.string:
start: "\""
end: "(\"|$)"
skip: "\\\\."
rules:
- constant.specialChar: "\\\\."
- constant.string:
start: "'"
end: "('|$)"
skip: "\\\\."
rules:
- constant.specialChar: "\\\\."
- comment:
start: "#"
end: "$"
rules: # AKA Code tags (PEP 350)
- todo: "(TODO|FIXME|HACK|BUG|NOTE|FAQ|MNEMONIC|REQ|RFE|IDEA|PORT|\\?\\?\\?|!!!|GLOSS|SEE|TODOC|STAT|RVD|CRED):?"