-
Notifications
You must be signed in to change notification settings - Fork 2
/
feedback.sublime-syntax
68 lines (60 loc) · 1.6 KB
/
feedback.sublime-syntax
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
%YAML 1.2
---
name: feedback
scope: text.feedback
first_line_match: "#feedback"
contexts:
main:
- match: "#feedback"
scope: comment
- match: '"""'
push: docstring
- match: "==============+|-------+\\(.*\\)-------+"
scope: storage.type
- match: "(Maximum points:) (\\d+)"
captures:
1: entity.name.function
2: text
- match: "All tests passed!|Problem solved!"
scope: markup.inserted
- match: "\\(\\( +-[\\d]] +\\)\\)"
scope: markups.deleted
- match: "---+begin stdout---+"
scope: comment
push: stdout
- match: "Note:|GRADER:"
scope: entity.name.function
- match: "(✘) .* (should be) .* (but it is)"
captures:
1: markup.deleted
2: entity.name.function
3: entity.name.function
- match: "(✘) .* (should print:)"
captures:
1: markup.deleted
2: entity.name.function
- match: "(✘).*(raised an exception:)"
captures:
1: markup.deleted
2: entity.name.function
- match: "(but) (it actually prints:)"
captures:
1: entity.name.function
2: entity.name.function
- match: "\\(\\([ ]+-[\\d\\.]+[ ]+\\)\\)"
scope: markup.deleted
# - match: "^\\s*(#)\\s*\\b(include)\\b"
# captures:
# 1: meta.preprocessor.c++
# 2: keyword.control.include.c++
stdout:
- meta_scope: string
- match: "----+end stdout----+"
scope: comment
pop: true
docstring:
- meta_scope: comment
- match: \\.
scope: constant.character.escape.c
- match: '"""'
pop: true