forked from spox/ultraviolet
/
rd_r_documentation.syntax
91 lines (91 loc) · 2.26 KB
/
rd_r_documentation.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
name: Rd (R Documentation)
fileTypes:
- rd
scopeName: text.tex.latex.rd
uuid: 80A00288-FE7E-4E66-B5BF-4948A2828203
foldingStartMarker: /\w*\{\s*$
patterns:
- name: meta.section.rd
endCaptures:
"1":
name: punctuation.definition.arguments.end.rd
begin: ((\\)(?:alias|docType|keyword|name|title))(\{)
contentName: entity.name.tag.rd
beginCaptures:
"1":
name: keyword.other.section.rd
"2":
name: punctuation.definition.function.rd
"3":
name: punctuation.definition.arguments.begin.rd
end: (\})
patterns:
- include: $self
- name: meta.section.rd
endCaptures:
"1":
name: punctuation.definition.arguments.end.rd
begin: ((\\)(?:details|format|references|source))(\{)
beginCaptures:
"1":
name: keyword.other.section.rd
"2":
name: punctuation.definition.function.rd
"3":
name: punctuation.definition.arguments.begin.rd
end: (\})
patterns:
- include: $self
- name: meta.usage.rd
endCaptures:
"1":
name: punctuation.definition.arguments.end.rd
begin: ((\\)(?:usage))(\{)(?:\n)?
contentName: source.r.embedded
beginCaptures:
"1":
name: keyword.other.usage.rd
"2":
name: punctuation.definition.function.rd
"3":
name: punctuation.definition.arguments.begin.rd
end: (\})
patterns:
- include: source.r
- name: meta.examples.rd
endCaptures:
"1":
name: punctuation.definition.arguments.end.rd
begin: ((\\)(?:examples))(\{)(?:\n)?
contentName: source.r.embedded
beginCaptures:
"1":
name: keyword.other.examples.rd
"2":
name: punctuation.definition.function.rd
"3":
name: punctuation.definition.arguments.begin.rd
end: (\})
patterns:
- include: source.r
- name: meta.author.rd
captures:
"6":
name: markup.underline.link.rd
"7":
name: punctuation.definition.link.rd
"1":
name: keyword.other.author.rd
"2":
name: punctuation.definition.function.rd
"3":
name: punctuation.definition.arguments.begin.rd
"4":
name: entity.name.tag.author.rd
"5":
name: punctuation.definition.link.rd
match: ((\\)(?:author))(\{)([\w\s]+?)\s+(<)([^>]*)(>)
- include: text.tex.latex
foldingStopMarker: ^\s*\}
keyEquivalent: ^~R