Elffuss BraidHub

kikocis/continue public

main · 1.2 KiBRawPermalink
1{
2 "name": "Prompt",
3 "scopeName": "source.prompt",
4 "patterns": [
5 {
6 "include": "#at-references"
7 },
8 {
9 "include": "#strings"
10 },
11 {
12 "include": "#comments"
13 }
14 ],
15 "repository": {
16 "at-references": {
17 "patterns": [
18 {
19 "name": "entity.name.type.prompt",
20 "match": "@\\S+"
21 }
22 ]
23 },
24 "strings": {
25 "patterns": [
26 {
27 "name": "string.quoted.double.prompt",
28 "begin": "\"",
29 "end": "\"",
30 "patterns": [
31 {
32 "name": "constant.character.escape.prompt",
33 "match": "\\\\."
34 }
35 ]
36 },
37 {
38 "name": "string.quoted.single.prompt",
39 "begin": "'",
40 "end": "'",
41 "patterns": [
42 {
43 "name": "constant.character.escape.prompt",
44 "match": "\\\\."
45 }
46 ]
47 }
48 ]
49 },
50 "comments": {
51 "patterns": [
52 {
53 "name": "comment.line.double-slash.prompt",
54 "match": "//.*$"
55 },
56 {
57 "name": "comment.block.prompt",
58 "begin": "/\\*",
59 "end": "\\*/"
60 }
61 ]
62 }
63 }
64}