tm-grammars 1.26.0 → 1.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +474 -3
- package/README.md +28 -25
- package/grammars/apex.json +1 -1
- package/grammars/blade.json +91 -16
- package/grammars/c3.json +1982 -0
- package/grammars/fortran-fixed-form.json +37 -0
- package/grammars/fortran-free-form.json +178 -49
- package/grammars/gn.json +155 -0
- package/grammars/kusto.json +1 -1
- package/grammars/lean.json +0 -4
- package/grammars/luau.json +2 -2
- package/grammars/markdown-nix.json +2 -2
- package/grammars/markdown-vue.json +1 -1
- package/grammars/marko.json +8 -8
- package/grammars/mermaid.json +68 -4
- package/grammars/mojo.json +1 -1
- package/grammars/moonbit.json +393 -0
- package/grammars/proto.json +5 -5
- package/grammars/r.json +325 -669
- package/grammars/razor.json +134 -19
- package/grammars/svelte.json +13 -2
- package/grammars/vue-directives.json +1 -1
- package/grammars/vue-interpolations.json +1 -1
- package/grammars/vue.json +269 -29
- package/index.js +178 -122
- package/package.json +1 -1
package/grammars/r.json
CHANGED
|
@@ -1,870 +1,526 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "R",
|
|
3
|
+
"fileTypes": [
|
|
4
|
+
"R",
|
|
5
|
+
"r",
|
|
6
|
+
"Rprofile"
|
|
7
|
+
],
|
|
8
|
+
"foldingStartMarker": "\\{\\s*(?:#|$)",
|
|
9
|
+
"foldingStopMarker": "^\\s*}",
|
|
3
10
|
"name": "r",
|
|
4
11
|
"patterns": [
|
|
5
12
|
{
|
|
6
|
-
"include": "#roxygen"
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
"include": "#comments"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"include": "#constants"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"include": "#accessor"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"include": "#operators"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"include": "#keywords"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"include": "#storage-type"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"include": "#strings"
|
|
13
|
+
"include": "#roxygen-example"
|
|
28
14
|
},
|
|
29
15
|
{
|
|
30
|
-
"include": "#
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"include": "#function-declarations"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"include": "#lambda-functions"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"include": "#builtin-functions"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"include": "#function-calls"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"match": "[.A-Z_a-z][.\\w]*|`[^`]+`"
|
|
16
|
+
"include": "#basic"
|
|
46
17
|
}
|
|
47
18
|
],
|
|
48
19
|
"repository": {
|
|
49
|
-
"
|
|
20
|
+
"basic": {
|
|
50
21
|
"patterns": [
|
|
51
22
|
{
|
|
52
|
-
"
|
|
53
|
-
"beginCaptures": {
|
|
54
|
-
"1": {
|
|
55
|
-
"name": "keyword.accessor.dollar.r"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
"end": "(?!\\G)",
|
|
59
|
-
"patterns": [
|
|
60
|
-
{
|
|
61
|
-
"include": "#function-calls"
|
|
62
|
-
}
|
|
63
|
-
]
|
|
23
|
+
"include": "#roxygen"
|
|
64
24
|
},
|
|
65
25
|
{
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
"end": "(?!\\G)",
|
|
73
|
-
"patterns": [
|
|
74
|
-
{
|
|
75
|
-
"include": "#function-calls"
|
|
76
|
-
}
|
|
77
|
-
]
|
|
26
|
+
"include": "#comment"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"include": "#expression"
|
|
78
30
|
}
|
|
79
31
|
]
|
|
80
32
|
},
|
|
81
|
-
"
|
|
33
|
+
"basic-roxygen-example": {
|
|
82
34
|
"patterns": [
|
|
83
35
|
{
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"0": {
|
|
87
|
-
"name": "punctuation.section.parameters.begin.bracket.round.r"
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"end": "\\)",
|
|
91
|
-
"endCaptures": {
|
|
92
|
-
"0": {
|
|
93
|
-
"name": "punctuation.section.parameters.end.bracket.round.r"
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
"patterns": [
|
|
97
|
-
{
|
|
98
|
-
"include": "source.r"
|
|
99
|
-
}
|
|
100
|
-
]
|
|
36
|
+
"match": "^\\s*#+'",
|
|
37
|
+
"name": "comment.line"
|
|
101
38
|
},
|
|
102
39
|
{
|
|
103
|
-
"
|
|
104
|
-
"beginCaptures": {
|
|
105
|
-
"0": {
|
|
106
|
-
"name": "punctuation.section.brackets.single.begin.r"
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
"end": "]",
|
|
110
|
-
"endCaptures": {
|
|
111
|
-
"0": {
|
|
112
|
-
"name": "punctuation.section.brackets.single.end.r"
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
"patterns": [
|
|
116
|
-
{
|
|
117
|
-
"include": "source.r"
|
|
118
|
-
}
|
|
119
|
-
]
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"begin": "\\[\\[",
|
|
123
|
-
"beginCaptures": {
|
|
124
|
-
"0": {
|
|
125
|
-
"name": "punctuation.section.brackets.double.begin.r"
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
"contentName": "meta.item-access.arguments.r",
|
|
129
|
-
"end": "]]",
|
|
130
|
-
"endCaptures": {
|
|
131
|
-
"0": {
|
|
132
|
-
"name": "punctuation.section.brackets.double.end.r"
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
"patterns": [
|
|
136
|
-
{
|
|
137
|
-
"include": "source.r"
|
|
138
|
-
}
|
|
139
|
-
]
|
|
40
|
+
"include": "#comment"
|
|
140
41
|
},
|
|
141
42
|
{
|
|
142
|
-
"
|
|
143
|
-
"beginCaptures": {
|
|
144
|
-
"0": {
|
|
145
|
-
"name": "punctuation.section.block.begin.bracket.curly.r"
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
"end": "}",
|
|
149
|
-
"endCaptures": {
|
|
150
|
-
"0": {
|
|
151
|
-
"name": "punctuation.section.block.end.bracket.curly.r"
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
"patterns": [
|
|
155
|
-
{
|
|
156
|
-
"include": "source.r"
|
|
157
|
-
}
|
|
158
|
-
]
|
|
43
|
+
"include": "#expression"
|
|
159
44
|
}
|
|
160
45
|
]
|
|
161
46
|
},
|
|
162
|
-
"
|
|
47
|
+
"brackets": {
|
|
163
48
|
"patterns": [
|
|
164
49
|
{
|
|
165
|
-
"begin": "\\b(?:(base)(::))?(abbreviate|abs|acosh??|activeBindingFunction|addNA|addTaskCallback|agrepl??|alist|all|all\\.equal|all\\.equal\\.character|all\\.equal\\.default|all\\.equal\\.environment|all\\.equal\\.envRefClass|all\\.equal\\.factor|all\\.equal\\.formula|all\\.equal\\.function|all\\.equal\\.language|all\\.equal\\.list|all\\.equal\\.numeric|all\\.equal\\.POSIXt|all\\.equal\\.raw|all\\.names|all\\.vars|allowInterrupts|any|anyDuplicated|anyDuplicated\\.array|anyDuplicated\\.data\\.frame|anyDuplicated\\.default|anyDuplicated\\.matrix|anyNA|anyNA\\.data\\.frame|anyNA\\.numeric_version|anyNA\\.POSIXlt|aperm|aperm\\.default|aperm\\.table|append|apply|Arg|args|array|array2DF|arrayInd|as\\.array|as\\.array\\.default|as\\.call|as\\.character|as\\.character\\.condition|as\\.character\\.Date|as\\.character\\.default|as\\.character\\.error|as\\.character\\.factor|as\\.character\\.hexmode|as\\.character\\.numeric_version|as\\.character\\.octmode|as\\.character\\.POSIXt|as\\.character\\.srcref|as\\.complex|as\\.data\\.frame|as\\.data\\.frame\\.array|as\\.data\\.frame\\.AsIs|as\\.data\\.frame\\.character|as\\.data\\.frame\\.complex|as\\.data\\.frame\\.data\\.frame|as\\.data\\.frame\\.Date|as\\.data\\.frame\\.default|as\\.data\\.frame\\.difftime|as\\.data\\.frame\\.factor|as\\.data\\.frame\\.integer|as\\.data\\.frame\\.list|as\\.data\\.frame\\.logical|as\\.data\\.frame\\.matrix|as\\.data\\.frame\\.model\\.matrix|as\\.data\\.frame\\.noquote|as\\.data\\.frame\\.numeric|as\\.data\\.frame\\.numeric_version|as\\.data\\.frame\\.ordered|as\\.data\\.frame\\.POSIXct|as\\.data\\.frame\\.POSIXlt|as\\.data\\.frame\\.raw|as\\.data\\.frame\\.table|as\\.data\\.frame\\.ts|as\\.data\\.frame\\.vector|as\\.Date|as\\.Date\\.character|as\\.Date\\.default|as\\.Date\\.factor|as\\.Date\\.numeric|as\\.Date\\.POSIXct|as\\.Date\\.POSIXlt|as\\.difftime|as\\.double|as\\.double\\.difftime|as\\.double\\.POSIXlt|as\\.environment|as\\.expression|as\\.expression\\.default|as\\.factor|as\\.function|as\\.function\\.default|as\\.hexmode|as\\.integer|as\\.list|as\\.list\\.data\\.frame|as\\.list\\.Date|as\\.list\\.default|as\\.list\\.difftime|as\\.list\\.environment|as\\.list\\.factor|as\\.list\\.function|as\\.list\\.numeric_version|as\\.list\\.POSIXct|as\\.list\\.POSIXlt|as\\.logical|as\\.logical\\.factor|as\\.matrix|as\\.matrix\\.data\\.frame|as\\.matrix\\.default|as\\.matrix\\.noquote|as\\.matrix\\.POSIXlt|as\\.name|as\\.null|as\\.null\\.default|as\\.numeric|as\\.numeric_version|as\\.octmode|as\\.ordered|as\\.package_version|as\\.pairlist|as\\.POSIXct|as\\.POSIXct\\.Date|as\\.POSIXct\\.default|as\\.POSIXct\\.numeric|as\\.POSIXct\\.POSIXlt|as\\.POSIXlt|as\\.POSIXlt\\.character|as\\.POSIXlt\\.Date|as\\.POSIXlt\\.default|as\\.POSIXlt\\.factor|as\\.POSIXlt\\.numeric|as\\.POSIXlt\\.POSIXct|as\\.qr|as\\.raw|as\\.single|as\\.single\\.default|as\\.symbol|as\\.table|as\\.table\\.default|as\\.vector|as\\.vector\\.data\\.frame|as\\.vector\\.factor|as\\.vector\\.POSIXlt|asinh??|asNamespace|asplit|asS3|asS4|assign|atan2??|atanh|attach|attachNamespace|attr|attr\\.all\\.equal|attributes|autoload|autoloader|backsolve|balancePOSIXlt|baseenv|basename|besselI|besselJ|besselK|besselY|beta|bindingIsActive|bindingIsLocked|bindtextdomain|bitwAnd|bitwNot|bitwOr|bitwShiftL|bitwShiftR|bitwXor|body|bquote|break|browser|browserCondition|browserSetDebug|browserText|builtins|by|by\\.data\\.frame|by\\.default|bzfile|c|c\\.Date|c\\.difftime|c\\.factor|c\\.noquote|c\\.numeric_version|c\\.POSIXct|c\\.POSIXlt|c\\.warnings|call|callCC|capabilities|casefold|cat|cbind|cbind\\.data\\.frame|ceiling|char\\.expand|character|charmatch|charToRaw|chartr|chkDots|chol|chol\\.default|chol2inv|choose|chooseOpsMethod|chooseOpsMethod\\.default|class|clearPushBack|close|close\\.connection|close\\.srcfile|close\\.srcfilealias|closeAllConnections|col|colMeans|colnames|colSums|commandArgs|comment|complex|computeRestarts|conditionCall|conditionCall\\.condition|conditionMessage|conditionMessage\\.condition|conflictRules|conflicts|Conj|contributors|cosh??|cospi|crossprod|Cstack_info|cummax|cummin|cumprod|cumsum|curlGetHeaders|cut|cut\\.Date|cut\\.default|cut\\.POSIXt|data\\.class|data\\.frame|data\\.matrix|date|debug|debuggingState|debugonce|declare|default\\.stringsAsFactors|delayedAssign|deparse1??|det|detach|determinant|determinant\\.matrix|dget|diag|diff|diff\\.Date|diff\\.default|diff\\.difftime|diff\\.POSIXt|difftime|digamma|dim|dim\\.data\\.frame|dimnames|dimnames\\.data\\.frame|dir|dir\\.create|dir\\.exists|dirname|do\\.call|dontCheck|double|dput|dQuote|drop|droplevels|droplevels\\.data\\.frame|droplevels\\.factor|dump|duplicated|duplicated\\.array|duplicated\\.data\\.frame|duplicated\\.default|duplicated\\.matrix|duplicated\\.numeric_version|duplicated\\.POSIXlt|duplicated\\.warnings|dyn\\.load|dyn\\.unload|dynGet|eapply|eigen|emptyenv|enc2native|enc2utf8|encodeString|Encoding|endsWith|enquote|env\\.profile|environment|environmentIsLocked|environmentName|errorCondition|eval|eval\\.parent|evalq|Exec|exists|exp|expand\\.grid|expm1|expression|extSoftVersion|factor|factorial|fifo|file|file\\.access|file\\.append|file\\.choose|file\\.copy|file\\.create|file\\.exists|file\\.info|file\\.link|file\\.mode|file\\.mtime|file\\.path|file\\.remove|file\\.rename|file\\.show|file\\.size|file\\.symlink|Filter|Find|find\\.package|findInterval|findPackageEnv|findRestart|floor|flush|flush\\.connection|for|force|forceAndCall|formals|format|format\\.AsIs|format\\.data\\.frame|format\\.Date|format\\.default|format\\.difftime|format\\.factor|format\\.hexmode|format\\.info|format\\.libraryIQR|format\\.numeric_version|format\\.octmode|format\\.packageInfo|format\\.POSIXct|format\\.POSIXlt|format\\.pval|format\\.summaryDefault|formatC|formatDL|forwardsolve|function|gamma|gc|gc\\.time|gcinfo|gctorture2??|get0??|getAllConnections|getCallingDLLe??|getConnection|getDLLRegisteredRoutines|getDLLRegisteredRoutines\\.character|getDLLRegisteredRoutines\\.DLLInfo|getElement|geterrmessage|getExportedValue|getHook|getLoadedDLLs|getNamespace|getNamespaceExports|getNamespaceImports|getNamespaceInfo|getNamespaceName|getNamespaceUsers|getNamespaceVersion|getNativeSymbolInfo|getOption|getRversion|getSrcLines|getTaskCallbackNames|gettextf??|getwd|gl|globalCallingHandlers|globalenv|gregexec|gregexpr|grepl??|grepRaw|grepv|grouping|gsub|gzcon|gzfile|I|iconv|iconvlist|icuGetCollate|icuSetCollate|identical|identity|if|ifelse|Im|importIntoEnv|infoRDS|inherits|integer|interaction|interactive|intersect|intToBits|intToUtf8|inverse\\.rle|invisible|invokeRestart|invokeRestartInteractively|is\\.array|is\\.atomic|is\\.call|is\\.character|is\\.complex|is\\.data\\.frame|is\\.double|is\\.element|is\\.environment|is\\.expression|is\\.factor|is\\.finite|is\\.finite\\.POSIXlt|is\\.function|is\\.infinite|is\\.infinite\\.POSIXlt|is\\.integer|is\\.language|is\\.list|is\\.loaded|is\\.logical|is\\.matrix|is\\.na|is\\.na\\.data\\.frame|is\\.na\\.numeric_version|is\\.na\\.POSIXlt|is\\.name|is\\.nan|is\\.nan\\.POSIXlt|is\\.null|is\\.numeric|is\\.numeric_version|is\\.numeric\\.Date|is\\.numeric\\.difftime|is\\.numeric\\.POSIXt|is\\.object|is\\.ordered|is\\.package_version|is\\.pairlist|is\\.primitive|is\\.qr|is\\.R|is\\.raw|is\\.recursive|is\\.single|is\\.symbol|is\\.table|is\\.unsorted|is\\.vector|isa|isatty|isBaseNamespace|isdebugged|isFALSE|isIncomplete|isNamespace|isNamespaceLoaded|ISOdate|ISOdatetime|isOpen|isRestart|isS4|isSeekable|isSymmetric|isSymmetric\\.matrix|isTRUE|jitter|julian|julian\\.Date|julian\\.POSIXt|kappa|kappa\\.default|kappa\\.lm|kappa\\.qr|kronecker|l10n_info|La_library|La_version|La\\.svd|labels|labels\\.default|lapply|lazyLoad|lazyLoadDBexec|lazyLoadDBfetch|lbeta|lchoose|length|length\\.POSIXlt|lengths|levels|levels\\.default|lfactorial|lgamma|libcurlVersion|library|library\\.dynam|library\\.dynam\\.unload|licence|license|list|list\\.dirs|list\\.files|list2DF|list2env|load|loadedNamespaces|loadingNamespaceInfo|loadNamespace|local|lockBinding|lockEnvironment|log|log10|log1p|log2|logb|logical|lower\\.tri|ls|make\\.names|make\\.unique|makeActiveBinding|Map|mapply|margin\\.table|marginSums|mat\\.or\\.vec|match|match\\.arg|match\\.call|match\\.fun|Math\\.data\\.frame|Math\\.Date|Math\\.difftime|Math\\.factor|Math\\.POSIXt|matrix|max|max\\.col|mean|mean\\.Date|mean\\.default|mean\\.difftime|mean\\.POSIXct|mean\\.POSIXlt|mem\\.maxNSize|mem\\.maxVSize|memCompress|memDecompress|memory\\.profile|merge|merge\\.data\\.frame|merge\\.default|message|mget|min|missing|Mod|mode|months|months\\.Date|months\\.POSIXt|mtfrm|mtfrm\\.default|mtfrm\\.POSIXct|mtfrm\\.POSIXlt|nameOfClass|nameOfClass\\.default|names|names\\.POSIXlt|namespaceExport|namespaceImport|namespaceImportClasses|namespaceImportFrom|namespaceImportMethods|nargs|nchar|ncol|NCOL|Negate|new\\.env|next|NextMethod|ngettext|nlevels|noquote|norm|normalizePath|nrow|NROW|nullfile|numeric|numeric_version|numToBits|numToInts|nzchar|objects|oldClass|OlsonNames|on\\.exit|open|open\\.connection|open\\.srcfile|open\\.srcfilealias|open\\.srcfilecopy|Ops\\.data\\.frame|Ops\\.Date|Ops\\.difftime|Ops\\.factor|Ops\\.numeric_version|Ops\\.ordered|Ops\\.POSIXt|options|order|ordered|outer|package_version|packageEvent|packageHasNamespace|packageNotFoundError|packageStartupMessage|packBits|pairlist|parent\\.env|parent\\.frame|parse|parseNamespaceFile|paste0??|path\\.expand|path\\.package|pcre_config|pipe|plot|pmatch|pmax|pmax\\.int|pmin|pmin\\.int|polyroot|pos\\.to\\.env|Position|pretty|pretty\\.default|prettyNum|print|print\\.AsIs|print\\.by|print\\.condition|print\\.connection|print\\.data\\.frame|print\\.Date|print\\.default|print\\.difftime|print\\.Dlist|print\\.DLLInfo|print\\.DLLInfoList|print\\.DLLRegisteredRoutines|print\\.eigen|print\\.factor|print\\.function|print\\.hexmode|print\\.libraryIQR|print\\.listof|print\\.NativeRoutineList|print\\.noquote|print\\.numeric_version|print\\.octmode|print\\.packageInfo|print\\.POSIXct|print\\.POSIXlt|print\\.proc_time|print\\.restart|print\\.rle|print\\.simple\\.list|print\\.srcfile|print\\.srcref|print\\.summary\\.table|print\\.summary\\.warnings|print\\.summaryDefault|print\\.table|print\\.warnings|prmatrix|proc\\.time|prod|prop\\.table|proportions|provideDimnames|psigamma|pushBack|pushBackLength|qr??|qr\\.coef|qr\\.default|qr\\.fitted|qr\\.Q|qr\\.qty|qr\\.qy|qr\\.R|qr\\.resid|qr\\.solve|qr\\.X|quarters|quarters\\.Date|quarters\\.POSIXt|quit|quote|R_compiled_by|R_system_version|R\\.home|R\\.Version|range|range\\.Date|range\\.default|range\\.POSIXct|rank|rapply|raw|rawConnection|rawConnectionValue|rawShift|rawToBits|rawToChar|rbind|rbind\\.data\\.frame|rcond|Re|read\\.dcf|readBin|readChar|readline|readLines|readRDS|readRenviron|Recall|Reduce|reg\\.finalizer|regexec|regexpr|registerS3methods??|regmatches|remove|removeTaskCallback|rep|rep_len|rep\\.Date|rep\\.difftime|rep\\.factor|rep\\.int|rep\\.numeric_version|rep\\.POSIXct|rep\\.POSIXlt|repeat|replace|replicate|require|requireNamespace|restartDescription|restartFormals|retracemem|return|returnValue|rev|rev\\.default|rle|rm|RNGkind|RNGversion|round|round\\.Date|round\\.POSIXt|row|row\\.names|row\\.names\\.data\\.frame|row\\.names\\.default|rowMeans|rownames|rowsum|rowsum\\.data\\.frame|rowsum\\.default|rowSums|sample|sample\\.int|sapply|save|save\\.image|saveRDS|scale|scale\\.default|scan|search|searchpaths|seek|seek\\.connection|seq|seq_along|seq_len|seq\\.Date|seq\\.default|seq\\.int|seq\\.POSIXt|sequence|sequence\\.default|serialize|serverSocket|set\\.seed|setdiff|setequal|setHook|setNamespaceInfo|setSessionTimeLimit|setTimeLimit|setwd|showConnections|shQuote|sign|signalCondition|signif|simpleCondition|simpleError|simpleMessage|simpleWarning|simplify2array|sin|single|sinh|sink|sink\\.number|sinpi|slice\\.index|socketAccept|socketConnection|socketSelect|socketTimeout|solve|solve\\.default|solve\\.qr|sort|sort_by|sort_by\\.data\\.frame|sort_by\\.default|sort\\.default|sort\\.int|sort\\.list|sort\\.POSIXlt|source|split|split\\.data\\.frame|split\\.Date|split\\.default|split\\.POSIXct|sprintf|sqrt|sQuote|srcfile|srcfilealias|srcfilecopy|srcref|standardGeneric|startsWith|stderr|stdin|stdout|stop|stopifnot|storage\\.mode|str2expression|str2lang|strftime|strptime|strrep|strsplit|strtoi|strtrim|structure|strwrap|sub|subset|subset\\.data\\.frame|subset\\.default|subset\\.matrix|substitute|substr|substring|sum|summary|summary\\.connection|summary\\.data\\.frame|Summary\\.data\\.frame|summary\\.Date|Summary\\.Date|summary\\.default|summary\\.difftime|Summary\\.difftime|summary\\.factor|Summary\\.factor|summary\\.matrix|Summary\\.numeric_version|Summary\\.ordered|summary\\.POSIXct|Summary\\.POSIXct|summary\\.POSIXlt|Summary\\.POSIXlt|summary\\.proc_time|summary\\.srcfile|summary\\.srcref|summary\\.table|summary\\.warnings|suppressMessages|suppressPackageStartupMessages|suppressWarnings|suspendInterrupts|svd|sweep|switch|sys\\.calls??|Sys\\.chmod|Sys\\.Date|sys\\.frames??|sys\\.function|Sys\\.getenv|Sys\\.getlocale|Sys\\.getpid|Sys\\.glob|Sys\\.info|sys\\.load\\.image|Sys\\.localeconv|sys\\.nframe|sys\\.on\\.exit|sys\\.parents??|Sys\\.readlink|sys\\.save\\.image|Sys\\.setenv|Sys\\.setFileTime|Sys\\.setLanguage|Sys\\.setlocale|Sys\\.sleep|sys\\.source|sys\\.status|Sys\\.time|Sys\\.timezone|Sys\\.umask|Sys\\.unsetenv|Sys\\.which|system|system\\.file|system\\.time|system2|t|t\\.data\\.frame|t\\.default|table|tabulate|Tailcall|tanh??|tanpi|tapply|taskCallbackManager|tcrossprod|tempdir|tempfile|textConnection|textConnectionValue|tolower|topenv|toString|toString\\.default|toupper|trace|traceback|tracemem|tracingState|transform|transform\\.data\\.frame|transform\\.default|trigamma|trimws|trunc|trunc\\.Date|trunc\\.POSIXt|truncate|truncate\\.connection|try|tryCatch|tryInvokeRestart|typeof|unCfillPOSIXlt|unclass|undebug|union|unique|unique\\.array|unique\\.data\\.frame|unique\\.default|unique\\.matrix|unique\\.numeric_version|unique\\.POSIXlt|unique\\.warnings|units|units\\.difftime|unix\\.time|unlink|unlist|unloadNamespace|unlockBinding|unname|unserialize|unsplit|untrace|untracemem|unz|upper\\.tri|url|use|UseMethod|utf8ToInt|validEnc|validUTF8|vapply|vector|Vectorize|warning|warningCondition|warnings|weekdays|weekdays\\.Date|weekdays\\.POSIXt|which|which\\.max|which\\.min|while|with|with\\.default|withAutoprint|withCallingHandlers|within|within\\.data\\.frame|within\\.list|withRestarts|withVisible|write|write\\.dcf|writeBin|writeChar|writeLines|xor|xpdrows\\.data\\.frame|xtfrm|xtfrm\\.AsIs|xtfrm\\.data\\.frame|xtfrm\\.Date|xtfrm\\.default|xtfrm\\.difftime|xtfrm\\.factor|xtfrm\\.numeric_version|xtfrm\\.POSIXct|xtfrm\\.POSIXlt|xzfile|zapsmall|zstdfile)\\s*(\\()",
|
|
166
|
-
"
|
|
167
|
-
|
|
168
|
-
"name": "support.namespace.r"
|
|
169
|
-
},
|
|
170
|
-
"2": {
|
|
171
|
-
"name": "punctuation.accessor.colons.r"
|
|
172
|
-
},
|
|
173
|
-
"3": {
|
|
174
|
-
"name": "support.function.r"
|
|
175
|
-
},
|
|
176
|
-
"4": {
|
|
177
|
-
"name": "punctuation.definition.arguments.begin.r"
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
"contentName": "meta.function-call.arguments.r",
|
|
181
|
-
"end": "(\\))",
|
|
182
|
-
"endCaptures": {
|
|
183
|
-
"1": {
|
|
184
|
-
"name": "punctuation.definition.arguments.end.r"
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
"name": "meta.function-call.r",
|
|
188
|
-
"patterns": [
|
|
189
|
-
{
|
|
190
|
-
"include": "#function-call-arguments"
|
|
191
|
-
}
|
|
192
|
-
]
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"begin": "\\b(?:(graphics)(::))?(abline|arrows|assocplot|axis|Axis|axis\\.Date|Axis\\.Date|Axis\\.default|axis\\.POSIXct|Axis\\.POSIXt|Axis\\.table|axTicks|barplot|barplot\\.default|barplot\\.formula|box|boxplot|boxplot\\.default|boxplot\\.formula|boxplot\\.matrix|bxp|cdplot|cdplot\\.default|cdplot\\.formula|clip|close\\.screen|co\\.intervals|contour|contour\\.default|coplot|curve|dotchart|erase\\.screen|extendDateTimeFormat|filled\\.contour|fourfoldplot|frame|grconvertX|grconvertY|grid|hist|hist\\.Date|hist\\.default|hist\\.POSIXt|identify|identify\\.default|image|image\\.default|layout|layout\\.show|lcm|legend|lines|lines\\.default|lines\\.formula|lines\\.histogram|lines\\.table|locator|matlines|matplot|matpoints|mosaicplot|mosaicplot\\.default|mosaicplot\\.formula|mtext|pairs|pairs\\.default|pairs\\.formula|panel\\.smooth|par|persp|persp\\.default|pie|piechart|plot\\.data\\.frame|plot\\.default|plot\\.design|plot\\.factor|plot\\.formula|plot\\.function|plot\\.histogram|plot\\.new|plot\\.raster|plot\\.table|plot\\.window|plot\\.xy|plotHclust|points|points\\.default|points\\.formula|points\\.table|polygon|polypath|rasterImage|rect|rug|screen|segments|smoothScatter|spineplot|spineplot\\.default|spineplot\\.formula|split\\.screen|stars|stem|strheight|stripchart|stripchart\\.default|stripchart\\.formula|strwidth|sunflowerplot|sunflowerplot\\.default|sunflowerplot\\.formula|symbols|text|text\\.default|text\\.formula|title|xinch|xspline|xyinch|yinch)\\s*(\\()",
|
|
196
|
-
"beginCaptures": {
|
|
197
|
-
"1": {
|
|
198
|
-
"name": "support.namespace.r"
|
|
199
|
-
},
|
|
200
|
-
"2": {
|
|
201
|
-
"name": "punctuation.accessor.colons.r"
|
|
202
|
-
},
|
|
203
|
-
"3": {
|
|
204
|
-
"name": "support.function.r"
|
|
205
|
-
},
|
|
206
|
-
"4": {
|
|
207
|
-
"name": "punctuation.definition.arguments.begin.r"
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
"contentName": "meta.function-call.arguments.r",
|
|
211
|
-
"end": "(\\))",
|
|
212
|
-
"endCaptures": {
|
|
213
|
-
"1": {
|
|
214
|
-
"name": "punctuation.definition.arguments.end.r"
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
"name": "meta.function-call.r",
|
|
50
|
+
"begin": "\\{",
|
|
51
|
+
"end": "}",
|
|
52
|
+
"name": "meta.bracket",
|
|
218
53
|
"patterns": [
|
|
219
54
|
{
|
|
220
|
-
"include": "#
|
|
55
|
+
"include": "#basic"
|
|
221
56
|
}
|
|
222
57
|
]
|
|
223
58
|
},
|
|
224
59
|
{
|
|
225
|
-
"begin": "\\
|
|
226
|
-
"
|
|
227
|
-
|
|
228
|
-
"name": "support.namespace.r"
|
|
229
|
-
},
|
|
230
|
-
"2": {
|
|
231
|
-
"name": "punctuation.accessor.colons.r"
|
|
232
|
-
},
|
|
233
|
-
"3": {
|
|
234
|
-
"name": "support.function.r"
|
|
235
|
-
},
|
|
236
|
-
"4": {
|
|
237
|
-
"name": "punctuation.definition.arguments.begin.r"
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
"contentName": "meta.function-call.arguments.r",
|
|
241
|
-
"end": "(\\))",
|
|
242
|
-
"endCaptures": {
|
|
243
|
-
"1": {
|
|
244
|
-
"name": "punctuation.definition.arguments.end.r"
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
"name": "meta.function-call.r",
|
|
60
|
+
"begin": "\\[",
|
|
61
|
+
"end": "]",
|
|
62
|
+
"name": "meta.bracket",
|
|
248
63
|
"patterns": [
|
|
249
64
|
{
|
|
250
|
-
"
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
"beginCaptures": {
|
|
257
|
-
"1": {
|
|
258
|
-
"name": "support.namespace.r"
|
|
259
|
-
},
|
|
260
|
-
"2": {
|
|
261
|
-
"name": "punctuation.accessor.colons.r"
|
|
262
|
-
},
|
|
263
|
-
"3": {
|
|
264
|
-
"name": "support.function.r"
|
|
65
|
+
"captures": {
|
|
66
|
+
"1": {
|
|
67
|
+
"name": "variable.parameter"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"match": "([.\\w]+)\\s*(?==[^=])"
|
|
265
71
|
},
|
|
266
|
-
"4": {
|
|
267
|
-
"name": "punctuation.definition.arguments.begin.r"
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
"contentName": "meta.function-call.arguments.r",
|
|
271
|
-
"end": "(\\))",
|
|
272
|
-
"endCaptures": {
|
|
273
|
-
"1": {
|
|
274
|
-
"name": "punctuation.definition.arguments.end.r"
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
"name": "meta.function-call.r",
|
|
278
|
-
"patterns": [
|
|
279
72
|
{
|
|
280
|
-
"include": "#
|
|
73
|
+
"include": "#basic"
|
|
281
74
|
}
|
|
282
75
|
]
|
|
283
76
|
},
|
|
284
77
|
{
|
|
285
|
-
"begin": "\\b(?:(stats)(::))?(acf|acf2AR|add\\.scope|add1|add1\\.default|add1\\.glm|add1\\.lm|add1\\.mlm|addmargins|aggregate|aggregate\\.data\\.frame|aggregate\\.default|aggregate\\.formula|aggregate\\.ts|AIC|AIC\\.default|AIC\\.logLik|alias|alias\\.formula|alias\\.lm|anova|anova\\.glm|anova\\.glmlist|anova\\.lm|anova\\.lmlist|anova\\.loess|anova\\.mlm|anova\\.mlmlist|anova\\.nls|anovalist\\.nls|ansari\\.test|ansari\\.test\\.default|ansari\\.test\\.formula|aov|approx|approxfun|ar|ar\\.burg|ar\\.burg\\.default|ar\\.burg\\.mts|ar\\.mle|ar\\.ols|ar\\.yw|ar\\.yw\\.default|ar\\.yw\\.mts|arima|arima\\.sim|arima0|arima0\\.diag|ARMAacf|ARMAtoMA|as\\.data\\.frame\\.aovproj|as\\.data\\.frame\\.ftable|as\\.data\\.frame\\.logLik|as\\.dendrogram|as\\.dendrogram\\.dendrogram|as\\.dendrogram\\.hclust|as\\.dist|as\\.dist\\.default|as\\.formula|as\\.hclust|as\\.hclust\\.default|as\\.hclust\\.dendrogram|as\\.hclust\\.twins|as\\.matrix\\.dist|as\\.matrix\\.ftable|as\\.stepfun|as\\.stepfun\\.default|as\\.stepfun\\.isoreg|as\\.table\\.ftable|as\\.ts|as\\.ts\\.default|asOneSidedFormula|assert_NULL_or_prob|ave|bandwidth\\.kernel|bartlett\\.test|bartlett\\.test\\.default|bartlett\\.test\\.formula|BIC|BIC\\.default|BIC\\.logLik|binom\\.test|binomial|binomInitialize|biplot|biplot\\.default|biplot\\.prcomp|biplot\\.princomp|Box\\.test|bw_pair_cnts|bw\\.bcv|bw\\.nrd0??|bw\\.SJ|bw\\.ucv|C|cancor|case\\.names|case\\.names\\.default|case\\.names\\.lm|cbind\\.ts|ccf|check_exact|chisq\\.test|cmdscale|coef|coef\\.aov|coef\\.Arima|coef\\.default|coef\\.listof|coef\\.maov|coef\\.nls|coefficients|complete\\.cases|confint|confint\\.default|confint\\.glm|confint\\.lm|confint\\.nls|confint\\.profile\\.glm|confint\\.profile\\.nls|constrOptim|contr\\.helmert|contr\\.poly|contr\\.SAS|contr\\.sum|contr\\.treatment|contrasts|convolve|cooks\\.distance|cooks\\.distance\\.glm|cooks\\.distance\\.lm|cophenetic|cophenetic\\.default|cophenetic\\.dendrogram|cor|cor\\.test|cor\\.test\\.default|cor\\.test\\.formula|cov|cov\\.wt|cov2cor|covratio|cpgram|cut\\.dendrogram|cutree|cycle|cycle\\.default|cycle\\.ts|D|dbeta|dbinom|dcauchy|dchisq|decompose|delete\\.response|deltat|deltat\\.default|dendrapply|density|density\\.default|deparse2|deriv|deriv\\.default|deriv\\.formula|deriv3|deriv3\\.default|deriv3\\.formula|deviance|deviance\\.default|deviance\\.glm|deviance\\.lm|deviance\\.mlm|deviance\\.nls|dexp|df|df\\.kernel|df\\.residual|df\\.residual\\.default|df\\.residual\\.nls|DF2formula|dfbeta|dfbeta\\.lm|dfbetas|dfbetas\\.lm|dffits|dgamma|dgeom|dhyper|diff\\.ts|diffinv|diffinv\\.default|diffinv\\.ts|diffinv\\.vector|dist|dlnorm|dlogis|dmultinom|dnbinom|dnorm|dpois|drop\\.scope|drop\\.terms|drop1|drop1\\.default|drop1\\.glm|drop1\\.lm|drop1\\.mlm|dsignrank|dt|dummy\\.coef|dummy\\.coef\\.aovlist|dummy\\.coef\\.lm|dunif|dweibull|dwilcox|ecdf|eff\\.aovlist|effects|effects\\.glm|effects\\.lm|embed|end|end\\.default|estVar|estVar\\.mlm|estVar\\.SSD|expand\\.model\\.frame|extractAIC|extractAIC\\.aov|extractAIC\\.coxph|extractAIC\\.glm|extractAIC\\.lm|extractAIC\\.negbin|extractAIC\\.survreg|factanal|factanal\\.fit\\.mle|factor\\.scope|family|family\\.glm|family\\.lm|fft|filter|fisher\\.test|fitted|fitted\\.default|fitted\\.isoreg|fitted\\.kmeans|fitted\\.nls|fitted\\.smooth\\.spline|fitted\\.values|fivenum|fligner\\.test|fligner\\.test\\.default|fligner\\.test\\.formula|format_perc|format\\.dist|format\\.ftable|formula|formula\\.character|formula\\.data\\.frame|formula\\.default|formula\\.formula|formula\\.glm|formula\\.lm|formula\\.nls|formula\\.terms|frequency|frequency\\.default|friedman\\.test|friedman\\.test\\.default|friedman\\.test\\.formula|ftable|ftable\\.default|ftable\\.formula|Gamma|gaussian|get_all_vars|getCall|getCall\\.default|getInitial|getInitial\\.default|getInitial\\.formula|getInitial\\.selfStart|glm|glm\\.control|glm\\.fit|hasTsp|hat|hatvalues|hatvalues\\.lm|hatvalues\\.smooth\\.spline|hclust|head\\.ts|heatmap|HL|HoltWinters|hyman_filter|identify\\.hclust|influence|influence\\.glm|influence\\.lm|influence\\.measures|integrate|interaction\\.plot|inverse\\.gaussian|IQR|is\\.empty\\.model|is\\.leaf|is\\.mts|is\\.stepfun|is\\.ts|is\\.tskernel|isoreg|KalmanForecast|KalmanLike|KalmanRun|KalmanSmooth|kernapply|kernapply\\.default|kernapply\\.ts|kernapply\\.tskernel|kernapply\\.vector|kernel|kmeans|knots|knots\\.stepfun|kruskal\\.test|kruskal\\.test\\.default|kruskal\\.test\\.formula|ks\\.test|ks\\.test\\.default|ks\\.test\\.formula|ksmooth|labels\\.dendrogram|labels\\.dist|labels\\.lm|labels\\.terms|lag|lag\\.default|lag\\.plot|line|lines\\.isoreg|lines\\.stepfun|lines\\.ts|lm|lm\\.fit|lm\\.influence|lm\\.wfit|loadings|loess|loess\\.control|loess\\.smooth|logLik|logLik\\.Arima|logLik\\.glm|logLik\\.lm|logLik\\.logLik|logLik\\.nls|loglin|lowess|ls\\.diag|ls\\.print|lsfit|mad|mahalanobis|make\\.link|make\\.tables\\.aovproj|make\\.tables\\.aovprojlist|makeARIMA|makepredictcall|makepredictcall\\.default|makepredictcall\\.poly|manova|mantelhaen\\.test|mauchly\\.test|mauchly\\.test\\.mlm|mauchly\\.test\\.SSD|mcnemar\\.test|median|median\\.default|medpolish|merge\\.dendrogram|midcache\\.dendrogram|model\\.extract|model\\.frame|model\\.frame\\.aovlist|model\\.frame\\.default|model\\.frame\\.glm|model\\.frame\\.lm|model\\.matrix|model\\.matrix\\.default|model\\.matrix\\.lm|model\\.offset|model\\.response|model\\.tables|model\\.tables\\.aov|model\\.tables\\.aovlist|model\\.weights|monthplot|monthplot\\.default|monthplot\\.stl|monthplot\\.StructTS|monthplot\\.ts|mood\\.test|mood\\.test\\.default|mood\\.test\\.formula|mvfft|na\\.action|na\\.action\\.default|na\\.contiguous|na\\.contiguous\\.default|na\\.exclude|na\\.exclude\\.data\\.frame|na\\.exclude\\.default|na\\.fail|na\\.fail\\.default|na\\.omit|na\\.omit\\.data\\.frame|na\\.omit\\.default|na\\.omit\\.ts|na\\.pass|napredict|napredict\\.default|napredict\\.exclude|naprint|naprint\\.default|naprint\\.exclude|naprint\\.omit|naresid|naresid\\.default|naresid\\.exclude|nextn|nleaves|nlm|nlminb|nls|nls_port_fit|nls\\.control|nlsModel|nlsModel\\.plinear|NLSstAsymptotic|NLSstAsymptotic\\.sortedXyData|NLSstClosestX|NLSstClosestX\\.sortedXyData|NLSstLfAsymptote|NLSstLfAsymptote\\.sortedXyData|NLSstRtAsymptote|NLSstRtAsymptote\\.sortedXyData|nobs|nobs\\.default|nobs\\.dendrogram|nobs\\.glm|nobs\\.lm|nobs\\.logLik|nobs\\.nls|numericDeriv|offset|oneway\\.test|Ops\\.ts|optim|optimHess|optimise|optimize|order\\.dendrogram|p\\.adjust|pacf|pacf\\.default|Pair|pairs\\.profile|pairwise\\.prop\\.test|pairwise\\.t\\.test|pairwise\\.table|pairwise\\.wilcox\\.test|pbeta|pbinom|pbirthday|pcauchy|pchisq|pexp|pf|pgamma|pgeom|phyper|Pillai|pkolmogorov|pkolmogorov_one_asymp|pkolmogorov_one_exact|pkolmogorov_two_asymp|pkolmogorov_two_exact|plclust|plnorm|plogis|plot\\.acf|plot\\.decomposed\\.ts|plot\\.dendrogram|plot\\.density|plot\\.ecdf|plot\\.hclust|plot\\.HoltWinters|plot\\.isoreg|plot\\.lm|plot\\.medpolish|plot\\.mlm|plot\\.ppr|plot\\.prcomp|plot\\.princomp|plot\\.profile|plot\\.profile\\.nls|plot\\.spec|plot\\.spec\\.coherency|plot\\.spec\\.phase|plot\\.stepfun|plot\\.stl|plot\\.ts|plot\\.tskernel|plot\\.TukeyHSD|plotNode|plotNodeLimit|pnbinom|pnorm|pointwise|poisson|poisson\\.test|polym??|port_get_named_v|port_msg|power|power\\.anova\\.test|power\\.prop\\.test|power\\.t\\.test|PP\\.test|ppoints|ppois|ppr|ppr\\.default|ppr\\.formula|prcomp|prcomp\\.default|prcomp\\.formula|predict|predict\\.ar|predict\\.Arima|predict\\.arima0|predict\\.glm|predict\\.HoltWinters|predict\\.lm|predict\\.loess|predict\\.mlm|predict\\.nls|predict\\.poly|predict\\.ppr|predict\\.prcomp|predict\\.princomp|predict\\.smooth\\.spline|predict\\.smooth\\.spline\\.fit|predict\\.StructTS|predLoess|preplot|princomp|princomp\\.default|princomp\\.formula|print\\.acf|print\\.anova|print\\.aov|print\\.aovlist|print\\.ar|print\\.Arima|print\\.arima0|print\\.dendrogram|print\\.density|print\\.dist|print\\.dummy_coef|print\\.dummy_coef_list|print\\.ecdf|print\\.factanal|print\\.family|print\\.formula|print\\.ftable|print\\.glm|print\\.hclust|print\\.HoltWinters|print\\.htest|print\\.infl|print\\.integrate|print\\.isoreg|print\\.kmeans|print\\.lm|print\\.loadings|print\\.loess|print\\.logLik|print\\.medpolish|print\\.mtable|print\\.nls|print\\.pairwise\\.htest|print\\.power\\.htest|print\\.ppr|print\\.prcomp|print\\.princomp|print\\.smooth\\.spline|print\\.stepfun|print\\.stl|print\\.StructTS|print\\.summary\\.aov|print\\.summary\\.aovlist|print\\.summary\\.ecdf|print\\.summary\\.glm|print\\.summary\\.lm|print\\.summary\\.loess|print\\.summary\\.manova|print\\.summary\\.nls|print\\.summary\\.ppr|print\\.summary\\.prcomp|print\\.summary\\.princomp|print\\.tables_aov|print\\.terms|print\\.ts|print\\.tskernel|print\\.TukeyHSD|print\\.tukeyline|print\\.tukeysmooth|print\\.xtabs|printCoefmat|profile|profile\\.glm|profile\\.nls|profiler|profiler\\.nls|proj|Proj|proj\\.aov|proj\\.aovlist|proj\\.default|proj\\.lm|promax|prop\\.test|prop\\.trend\\.test|psignrank|psmirnov|psmirnov_asymp|psmirnov_exact|psmirnov_simul|pt|ptukey|punif|pweibull|pwilcox|qbeta|qbinom|qbirthday|qcauchy|qchisq|qexp|qf|qgamma|qgeom|qhyper|qlnorm|qlogis|qnbinom|qnorm|qpois|qqline|qqnorm|qqnorm\\.default|qqplot|qr\\.influence|qr\\.lm|qsignrank|qsmirnov|qt|qtukey|quade\\.test|quade\\.test\\.default|quade\\.test\\.formula|quantile|quantile\\.default|quantile\\.ecdf|quantile\\.POSIXt|quasi|quasibinomial|quasipoisson|qunif|qweibull|qwilcox|r2dtable|Rank|rbeta|rbinom|rcauchy|rchisq|read\\.ftable|rect\\.hclust|reformulate|regularize\\.values|relevel|relevel\\.default|relevel\\.factor|relevel\\.ordered|reorder|reorder\\.default|reorder\\.dendrogram|replications|reshape|resid|residuals|residuals\\.default|residuals\\.glm|residuals\\.HoltWinters|residuals\\.isoreg|residuals\\.lm|residuals\\.nls|residuals\\.smooth\\.spline|residuals\\.tukeyline|rev\\.dendrogram|rexp|rf|rgamma|rgeom|rhyper|rlnorm|rlogis|rmultinom|rnbinom|rnorm|Roy|rpois|rsignrank|rsmirnov|rstandard|rstandard\\.glm|rstandard\\.lm|rstudent|rstudent\\.glm|rstudent\\.lm|rt|runif|runmed|rweibull|rwilcox|rWishart|safe_pchisq|safe_pf|scatter\\.smooth|screeplot|screeplot\\.default|sd|se\\.aov|se\\.aovlist|se\\.contrast|se\\.contrast\\.aov|se\\.contrast\\.aovlist|selfStart|selfStart\\.default|selfStart\\.formula|setNames|shapiro\\.test|sigma|sigma\\.default|sigma\\.glm|sigma\\.mlm|simpleLoess|simulate|simulate\\.lm|smooth|smooth\\.spline|smoothEnds|sortedXyData|sortedXyData\\.default|spec\\.ar|spec\\.pgram|spec\\.taper|spectrum|sphericity|spl_coef_conv|spline|splinefunH??|splinefunH0|SSasymp|SSasympOff|SSasympOrig|SSbiexp|SSD|SSD\\.mlm|SSfol|SSfpl|SSgompertz|SSlogis|SSmicmen|SSweibull|start|start\\.default|stat\\.anova|step|stepfun|stl|str\\.dendrogram|str\\.logLik|StructTS|summary\\.aov|summary\\.aovlist|summary\\.ecdf|summary\\.glm|summary\\.infl|summary\\.lm|summary\\.loess|summary\\.manova|summary\\.mlm|summary\\.nls|summary\\.ppr|summary\\.prcomp|summary\\.princomp|summary\\.stepfun|summary\\.stl|summary\\.tukeysmooth|supsmu|symnum|t\\.test|t\\.test\\.default|t\\.test\\.formula|t\\.ts|tail\\.ts|termplot|terms|terms\\.aovlist|terms\\.default|terms\\.formula|terms\\.terms|Thin\\.col|Thin\\.row|time|time\\.default|time\\.ts|toeplitz2??|Tr|ts|ts\\.intersect|ts\\.plot|ts\\.union|tsdiag|tsdiag\\.Arima|tsdiag\\.arima0|tsdiag\\.StructTS|tsp|tsSmooth|tsSmooth\\.StructTS|TukeyHSD|TukeyHSD\\.aov|uniroot|update|update\\.default|update\\.formula|update\\.packageStatus|var|var\\.test|var\\.test\\.default|var\\.test\\.formula|variable\\.names|variable\\.names\\.default|variable\\.names\\.lm|varimax|vcov|vcov\\.aov|vcov\\.Arima|vcov\\.glm|vcov\\.lm|vcov\\.mlm|vcov\\.nls|vcov\\.summary\\.glm|vcov\\.summary\\.lm|weighted\\.mean|weighted\\.mean\\.Date|weighted\\.mean\\.default|weighted\\.mean\\.difftime|weighted\\.mean\\.POSIXct|weighted\\.mean\\.POSIXlt|weighted\\.residuals|weights|weights\\.default|weights\\.glm|weights\\.nls|wilcox\\.test|wilcox\\.test\\.default|wilcox\\.test\\.formula|Wilks|window|window\\.default|window\\.ts|write\\.ftable|xtabs)\\s*(\\()",
|
|
286
|
-
"
|
|
287
|
-
|
|
288
|
-
"name": "support.namespace.r"
|
|
289
|
-
},
|
|
290
|
-
"2": {
|
|
291
|
-
"name": "punctuation.accessor.colons.r"
|
|
292
|
-
},
|
|
293
|
-
"3": {
|
|
294
|
-
"name": "support.function.r"
|
|
295
|
-
},
|
|
296
|
-
"4": {
|
|
297
|
-
"name": "punctuation.definition.arguments.begin.r"
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
"contentName": "meta.function-call.arguments.r",
|
|
301
|
-
"end": "(\\))",
|
|
302
|
-
"endCaptures": {
|
|
303
|
-
"1": {
|
|
304
|
-
"name": "punctuation.definition.arguments.end.r"
|
|
305
|
-
}
|
|
306
|
-
},
|
|
307
|
-
"name": "meta.function-call.r",
|
|
78
|
+
"begin": "\\(",
|
|
79
|
+
"end": "\\)",
|
|
80
|
+
"name": "meta.bracket",
|
|
308
81
|
"patterns": [
|
|
309
82
|
{
|
|
310
|
-
"
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
"beginCaptures": {
|
|
317
|
-
"1": {
|
|
318
|
-
"name": "support.namespace.r"
|
|
319
|
-
},
|
|
320
|
-
"2": {
|
|
321
|
-
"name": "punctuation.accessor.colons.r"
|
|
322
|
-
},
|
|
323
|
-
"3": {
|
|
324
|
-
"name": "support.function.r"
|
|
83
|
+
"captures": {
|
|
84
|
+
"1": {
|
|
85
|
+
"name": "variable.parameter"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"match": "([.\\w]+)\\s*(?==[^=])"
|
|
325
89
|
},
|
|
326
|
-
"4": {
|
|
327
|
-
"name": "punctuation.definition.arguments.begin.r"
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
"contentName": "meta.function-call.arguments.r",
|
|
331
|
-
"end": "(\\))",
|
|
332
|
-
"endCaptures": {
|
|
333
|
-
"1": {
|
|
334
|
-
"name": "punctuation.definition.arguments.end.r"
|
|
335
|
-
}
|
|
336
|
-
},
|
|
337
|
-
"name": "meta.function-call.r",
|
|
338
|
-
"patterns": [
|
|
339
90
|
{
|
|
340
|
-
"include": "#
|
|
91
|
+
"include": "#basic"
|
|
341
92
|
}
|
|
342
93
|
]
|
|
343
94
|
}
|
|
344
95
|
]
|
|
345
96
|
},
|
|
346
|
-
"
|
|
97
|
+
"comment": {
|
|
98
|
+
"match": "#.*",
|
|
99
|
+
"name": "comment.line"
|
|
100
|
+
},
|
|
101
|
+
"escape-code": {
|
|
102
|
+
"match": "\\\\[\"'\\\\`abefnrtv]",
|
|
103
|
+
"name": "constant.character.escape"
|
|
104
|
+
},
|
|
105
|
+
"escape-hex": {
|
|
106
|
+
"match": "\\\\x\\h+",
|
|
107
|
+
"name": "constant.numeric"
|
|
108
|
+
},
|
|
109
|
+
"escape-invalid": {
|
|
110
|
+
"match": "\\\\.",
|
|
111
|
+
"name": "invalid"
|
|
112
|
+
},
|
|
113
|
+
"escape-octal": {
|
|
114
|
+
"match": "\\\\\\d{1,3}",
|
|
115
|
+
"name": "constant.character.escape"
|
|
116
|
+
},
|
|
117
|
+
"escape-unicode": {
|
|
118
|
+
"match": "\\\\[Uu](?:\\h+|\\{\\h+})",
|
|
119
|
+
"name": "constant.character.escape"
|
|
120
|
+
},
|
|
121
|
+
"escapes": {
|
|
347
122
|
"patterns": [
|
|
348
123
|
{
|
|
349
|
-
"
|
|
350
|
-
"1": {
|
|
351
|
-
"name": "comment.line.pragma.r"
|
|
352
|
-
},
|
|
353
|
-
"2": {
|
|
354
|
-
"name": "entity.name.pragma.name.r"
|
|
355
|
-
}
|
|
356
|
-
},
|
|
357
|
-
"match": "^(#pragma[\\t ]+mark)[\\t ](.*)",
|
|
358
|
-
"name": "comment.line.pragma-mark.r"
|
|
124
|
+
"include": "#escape-code"
|
|
359
125
|
},
|
|
360
126
|
{
|
|
361
|
-
"
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
"
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
"beginCaptures": {
|
|
372
|
-
"0": {
|
|
373
|
-
"name": "punctuation.definition.comment.r"
|
|
374
|
-
}
|
|
375
|
-
},
|
|
376
|
-
"end": "\\n",
|
|
377
|
-
"name": "comment.line.number-sign.r"
|
|
378
|
-
}
|
|
379
|
-
]
|
|
127
|
+
"include": "#escape-hex"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"include": "#escape-octal"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"include": "#escape-unicode"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"include": "#escape-invalid"
|
|
380
137
|
}
|
|
381
138
|
]
|
|
382
139
|
},
|
|
383
|
-
"
|
|
140
|
+
"expression": {
|
|
384
141
|
"patterns": [
|
|
385
142
|
{
|
|
386
|
-
"
|
|
387
|
-
"name": "support.constant.misc.r"
|
|
143
|
+
"include": "#brackets"
|
|
388
144
|
},
|
|
389
145
|
{
|
|
390
|
-
"
|
|
391
|
-
"name": "constant.language.r"
|
|
146
|
+
"include": "#raw-strings"
|
|
392
147
|
},
|
|
393
148
|
{
|
|
394
|
-
"
|
|
395
|
-
"name": "constant.numeric.imaginary.hexadecimal.r"
|
|
149
|
+
"include": "#strings"
|
|
396
150
|
},
|
|
397
151
|
{
|
|
398
|
-
"
|
|
399
|
-
"name": "constant.numeric.imaginary.decimal.r"
|
|
152
|
+
"include": "#function-definition"
|
|
400
153
|
},
|
|
401
154
|
{
|
|
402
|
-
"
|
|
403
|
-
"name": "constant.numeric.imaginary.decimal.r"
|
|
155
|
+
"include": "#keywords"
|
|
404
156
|
},
|
|
405
157
|
{
|
|
406
|
-
"
|
|
407
|
-
"name": "constant.numeric.integer.hexadecimal.r"
|
|
158
|
+
"include": "#function-call"
|
|
408
159
|
},
|
|
409
160
|
{
|
|
410
|
-
"
|
|
411
|
-
"name": "constant.numeric.integer.decimal.r"
|
|
161
|
+
"include": "#identifiers"
|
|
412
162
|
},
|
|
413
163
|
{
|
|
414
|
-
"
|
|
415
|
-
"name": "constant.numeric.float.hexadecimal.r"
|
|
164
|
+
"include": "#numbers"
|
|
416
165
|
},
|
|
417
166
|
{
|
|
418
|
-
"
|
|
419
|
-
"name": "constant.numeric.float.decimal.r"
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
"match": "\\.[0-9]+(?:([Ee])([-+])?[0-9]+)?\\b",
|
|
423
|
-
"name": "constant.numeric.float.decimal.r"
|
|
167
|
+
"include": "#operators"
|
|
424
168
|
}
|
|
425
169
|
]
|
|
426
170
|
},
|
|
427
|
-
"function-call
|
|
428
|
-
"
|
|
429
|
-
{
|
|
430
|
-
"
|
|
431
|
-
"name": "variable.parameter.function-call.r"
|
|
432
|
-
},
|
|
433
|
-
{
|
|
434
|
-
"begin": "(?==)",
|
|
435
|
-
"end": "(?=[),])",
|
|
436
|
-
"patterns": [
|
|
437
|
-
{
|
|
438
|
-
"include": "source.r"
|
|
439
|
-
}
|
|
440
|
-
]
|
|
171
|
+
"function-call": {
|
|
172
|
+
"captures": {
|
|
173
|
+
"0": {
|
|
174
|
+
"name": "meta.function-call"
|
|
441
175
|
},
|
|
442
|
-
{
|
|
443
|
-
"
|
|
444
|
-
"name": "punctuation.separator.parameters.r"
|
|
445
|
-
},
|
|
446
|
-
{
|
|
447
|
-
"include": "source.r"
|
|
176
|
+
"1": {
|
|
177
|
+
"name": "entity.name.function"
|
|
448
178
|
}
|
|
449
|
-
|
|
179
|
+
},
|
|
180
|
+
"match": "([.\\w]+)(?=\\()"
|
|
450
181
|
},
|
|
451
|
-
"function-
|
|
452
|
-
"begin": "(
|
|
182
|
+
"function-definition": {
|
|
183
|
+
"begin": "(function)\\s*(\\()",
|
|
453
184
|
"beginCaptures": {
|
|
454
185
|
"1": {
|
|
455
|
-
"name": "
|
|
186
|
+
"name": "keyword.other"
|
|
187
|
+
},
|
|
188
|
+
"2": {
|
|
189
|
+
"name": "meta.bracket"
|
|
456
190
|
}
|
|
457
191
|
},
|
|
458
|
-
"contentName": "meta.function-call.arguments.r",
|
|
459
192
|
"end": "(\\))",
|
|
460
193
|
"endCaptures": {
|
|
461
194
|
"1": {
|
|
462
|
-
"name": "
|
|
195
|
+
"name": "meta.bracket"
|
|
463
196
|
}
|
|
464
197
|
},
|
|
465
|
-
"name": "meta.function
|
|
466
|
-
"patterns": [
|
|
467
|
-
{
|
|
468
|
-
"include": "#function-call-arguments"
|
|
469
|
-
}
|
|
470
|
-
]
|
|
471
|
-
},
|
|
472
|
-
"function-declarations": {
|
|
198
|
+
"name": "meta.function.definition",
|
|
473
199
|
"patterns": [
|
|
474
200
|
{
|
|
475
|
-
"begin": "([
|
|
201
|
+
"begin": "([.\\w]+)",
|
|
476
202
|
"beginCaptures": {
|
|
477
203
|
"1": {
|
|
478
|
-
"name": "
|
|
479
|
-
},
|
|
480
|
-
"2": {
|
|
481
|
-
"name": "keyword.operator.assignment.r"
|
|
482
|
-
},
|
|
483
|
-
"3": {
|
|
484
|
-
"name": "keyword.control.r"
|
|
485
|
-
},
|
|
486
|
-
"4": {
|
|
487
|
-
"name": "punctuation.definition.parameters.begin.r"
|
|
488
|
-
}
|
|
489
|
-
},
|
|
490
|
-
"contentName": "meta.function.parameters.r",
|
|
491
|
-
"end": "\\)",
|
|
492
|
-
"endCaptures": {
|
|
493
|
-
"0": {
|
|
494
|
-
"name": "punctuation.definition.parameters.end.r"
|
|
204
|
+
"name": "variable.parameter"
|
|
495
205
|
}
|
|
496
206
|
},
|
|
497
|
-
"
|
|
207
|
+
"end": "(?=[),])",
|
|
498
208
|
"patterns": [
|
|
499
209
|
{
|
|
500
|
-
"include": "#
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
"match": "[.A-Z_a-z][.\\w]*|`[^`]+`",
|
|
504
|
-
"name": "variable.parameter.function.language.r"
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
"begin": "(?==)",
|
|
508
|
-
"end": "(?=[),])",
|
|
509
|
-
"patterns": [
|
|
510
|
-
{
|
|
511
|
-
"include": "source.r"
|
|
512
|
-
}
|
|
513
|
-
]
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
"match": ",",
|
|
517
|
-
"name": "punctuation.separator.parameters.r"
|
|
210
|
+
"include": "#basic"
|
|
518
211
|
}
|
|
519
212
|
]
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"include": "#basic"
|
|
520
216
|
}
|
|
521
217
|
]
|
|
522
218
|
},
|
|
523
|
-
"
|
|
219
|
+
"identifier-quoted": {
|
|
220
|
+
"begin": "`",
|
|
221
|
+
"end": "`",
|
|
222
|
+
"name": "variable.object",
|
|
524
223
|
"patterns": [
|
|
525
224
|
{
|
|
526
|
-
"match": "
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
},
|
|
225
|
+
"match": "\\\\`"
|
|
226
|
+
}
|
|
227
|
+
]
|
|
228
|
+
},
|
|
229
|
+
"identifier-syntactic": {
|
|
230
|
+
"match": "[.\\p{L}\\p{Nl}][.\\p{L}\\p{Nl}\\p{Mn}\\p{Mc}\\d\\p{Pc}]*",
|
|
231
|
+
"name": "variable.object"
|
|
232
|
+
},
|
|
233
|
+
"identifiers": {
|
|
234
|
+
"patterns": [
|
|
537
235
|
{
|
|
538
|
-
"
|
|
539
|
-
"name": "keyword.control.flow.continue.r"
|
|
236
|
+
"include": "#identifier-syntactic"
|
|
540
237
|
},
|
|
541
238
|
{
|
|
542
|
-
"
|
|
543
|
-
|
|
544
|
-
|
|
239
|
+
"include": "#identifier-quoted"
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
"keywords": {
|
|
244
|
+
"patterns": [
|
|
545
245
|
{
|
|
546
|
-
"
|
|
547
|
-
"name": "keyword.control.loop.repeat.r"
|
|
246
|
+
"include": "#keywords-control"
|
|
548
247
|
},
|
|
549
248
|
{
|
|
550
|
-
"
|
|
551
|
-
"name": "keyword.control.loop.for.r"
|
|
249
|
+
"include": "#keywords-builtin"
|
|
552
250
|
},
|
|
553
251
|
{
|
|
554
|
-
"
|
|
555
|
-
|
|
556
|
-
|
|
252
|
+
"include": "#keywords-constant"
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
"keywords-builtin": {
|
|
257
|
+
"match": "(?:setGroupGeneric|setRefClass|setGeneric|NextMethod|setMethod|UseMethod|tryCatch|setClass|warning|require|library|R6Class|return|switch|attach|detach|source|stop|try)(?=\\()",
|
|
258
|
+
"name": "keyword.other"
|
|
259
|
+
},
|
|
260
|
+
"keywords-constant": {
|
|
261
|
+
"match": "(?:NA_character_|NA_integer_|NA_complex_|NA_real_|TRUE|FALSE|NULL|Inf|NaN|NA)\\b",
|
|
262
|
+
"name": "constant.language"
|
|
263
|
+
},
|
|
264
|
+
"keywords-control": {
|
|
265
|
+
"match": "(?:\\\\|function|if|else|in|break|next|repeat|for|while)\\b",
|
|
266
|
+
"name": "keyword"
|
|
267
|
+
},
|
|
268
|
+
"latex": {
|
|
269
|
+
"patterns": [
|
|
557
270
|
{
|
|
558
|
-
"match": "
|
|
559
|
-
"name": "keyword.
|
|
271
|
+
"match": "\\\\\\w+",
|
|
272
|
+
"name": "keyword.other"
|
|
560
273
|
}
|
|
561
274
|
]
|
|
562
275
|
},
|
|
563
|
-
"
|
|
276
|
+
"markdown": {
|
|
564
277
|
"patterns": [
|
|
565
278
|
{
|
|
566
|
-
"begin": "
|
|
279
|
+
"begin": "(`{3,})\\s*(.*)",
|
|
567
280
|
"beginCaptures": {
|
|
568
281
|
"1": {
|
|
569
|
-
"name": "
|
|
282
|
+
"name": "comment.line"
|
|
570
283
|
},
|
|
571
284
|
"2": {
|
|
572
|
-
"name": "
|
|
285
|
+
"name": "entity.name.section"
|
|
573
286
|
}
|
|
574
287
|
},
|
|
575
|
-
"
|
|
576
|
-
"end": "\\)",
|
|
288
|
+
"end": "(\\1)",
|
|
577
289
|
"endCaptures": {
|
|
578
|
-
"
|
|
579
|
-
"name": "
|
|
290
|
+
"1": {
|
|
291
|
+
"name": "comment.line"
|
|
580
292
|
}
|
|
581
293
|
},
|
|
582
|
-
"name": "meta.function.r",
|
|
583
294
|
"patterns": [
|
|
584
295
|
{
|
|
585
|
-
"
|
|
296
|
+
"match": "^\\s*#+'",
|
|
297
|
+
"name": "comment.line"
|
|
298
|
+
}
|
|
299
|
+
]
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"captures": {
|
|
303
|
+
"1": {
|
|
304
|
+
"name": "meta.bracket"
|
|
586
305
|
},
|
|
587
|
-
{
|
|
588
|
-
"
|
|
589
|
-
"name": "variable.parameter.function.language.r"
|
|
306
|
+
"2": {
|
|
307
|
+
"name": "variable.object"
|
|
590
308
|
},
|
|
591
|
-
{
|
|
592
|
-
"
|
|
593
|
-
"end": "(?=[),])",
|
|
594
|
-
"patterns": [
|
|
595
|
-
{
|
|
596
|
-
"include": "source.r"
|
|
597
|
-
}
|
|
598
|
-
]
|
|
309
|
+
"3": {
|
|
310
|
+
"name": "keyword.operator"
|
|
599
311
|
},
|
|
600
|
-
{
|
|
601
|
-
"
|
|
602
|
-
|
|
312
|
+
"4": {
|
|
313
|
+
"name": "entity.name.function"
|
|
314
|
+
},
|
|
315
|
+
"5": {
|
|
316
|
+
"name": "meta.bracket"
|
|
317
|
+
},
|
|
318
|
+
"6": {
|
|
319
|
+
"name": "meta.bracket"
|
|
603
320
|
}
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
]
|
|
607
|
-
},
|
|
608
|
-
"operators": {
|
|
609
|
-
"patterns": [
|
|
610
|
-
{
|
|
611
|
-
"match": "%[*/ox]%",
|
|
612
|
-
"name": "keyword.operator.arithmetic.r"
|
|
321
|
+
},
|
|
322
|
+
"match": "(\\[)(?:(\\w+)(:{2,3}))?(\\w+)(\\(\\))?(])"
|
|
613
323
|
},
|
|
614
324
|
{
|
|
615
|
-
"match": "(
|
|
616
|
-
"name": "
|
|
325
|
+
"match": "(\\s+|^)(__.+?__)\\b",
|
|
326
|
+
"name": "markdown.bold"
|
|
617
327
|
},
|
|
618
328
|
{
|
|
619
|
-
"match": "
|
|
620
|
-
"name": "
|
|
329
|
+
"match": "(\\s+|^)(_(?=[^_])(?:\\\\.|[^\\\\_])*?_)\\b",
|
|
330
|
+
"name": "markdown.italic"
|
|
621
331
|
},
|
|
622
332
|
{
|
|
623
|
-
"match": "
|
|
624
|
-
"name": "
|
|
333
|
+
"match": "(\\*\\*.+?\\*\\*)",
|
|
334
|
+
"name": "markdown.bold"
|
|
625
335
|
},
|
|
626
336
|
{
|
|
627
|
-
"match": "
|
|
628
|
-
"name": "
|
|
337
|
+
"match": "(\\*(?=[^*\\s])(?:\\\\.|[^*\\\\])*?\\*)",
|
|
338
|
+
"name": "markdown.italic"
|
|
629
339
|
},
|
|
630
340
|
{
|
|
631
|
-
"match": "(
|
|
632
|
-
"name": "
|
|
341
|
+
"match": "(`(?:[^\\\\`]|\\\\.)*`)",
|
|
342
|
+
"name": "markup.quote"
|
|
633
343
|
},
|
|
634
344
|
{
|
|
635
|
-
"match": "(
|
|
636
|
-
"name": "
|
|
637
|
-
}
|
|
345
|
+
"match": "(<)([^>]*)(>)",
|
|
346
|
+
"name": "markup.underline.link"
|
|
347
|
+
}
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
"numbers": {
|
|
351
|
+
"patterns": [
|
|
638
352
|
{
|
|
639
|
-
"match": "
|
|
640
|
-
"name": "
|
|
353
|
+
"match": "0[Xx]\\h+(?:p[-+]?\\d+)?[Li]?",
|
|
354
|
+
"name": "constant.numeric"
|
|
641
355
|
},
|
|
642
356
|
{
|
|
643
|
-
"match": "(
|
|
644
|
-
"name": "
|
|
645
|
-
}
|
|
357
|
+
"match": "(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[Ee][-+]?\\d*)?[Li]?",
|
|
358
|
+
"name": "constant.numeric"
|
|
359
|
+
}
|
|
360
|
+
]
|
|
361
|
+
},
|
|
362
|
+
"operators": {
|
|
363
|
+
"match": "%.*?%|:::?|:=|\\|>|=>|%%|>=|<=|==|!=|<<-|->>?|<-|\\|\\||&&|[-+=]|\\*\\*?|[!$\\&,/:<>?@^|~]",
|
|
364
|
+
"name": "keyword.operator"
|
|
365
|
+
},
|
|
366
|
+
"qqstring": {
|
|
367
|
+
"begin": "\"",
|
|
368
|
+
"end": "\"",
|
|
369
|
+
"name": "string.quoted.double",
|
|
370
|
+
"patterns": [
|
|
646
371
|
{
|
|
647
|
-
"
|
|
648
|
-
|
|
649
|
-
|
|
372
|
+
"include": "#escapes"
|
|
373
|
+
}
|
|
374
|
+
]
|
|
375
|
+
},
|
|
376
|
+
"qstring": {
|
|
377
|
+
"begin": "'",
|
|
378
|
+
"end": "'",
|
|
379
|
+
"name": "string.quoted.single",
|
|
380
|
+
"patterns": [
|
|
381
|
+
{
|
|
382
|
+
"include": "#escapes"
|
|
383
|
+
}
|
|
384
|
+
]
|
|
385
|
+
},
|
|
386
|
+
"raw-strings": {
|
|
387
|
+
"name": "string.quoted.other",
|
|
388
|
+
"patterns": [
|
|
650
389
|
{
|
|
651
|
-
"
|
|
652
|
-
"
|
|
390
|
+
"begin": "[Rr]\"(-*)\\{",
|
|
391
|
+
"end": "}\\1\"",
|
|
392
|
+
"name": "string.quoted.other"
|
|
653
393
|
},
|
|
654
394
|
{
|
|
655
|
-
"
|
|
656
|
-
"
|
|
395
|
+
"begin": "[Rr]'(-*)\\{",
|
|
396
|
+
"end": "}\\1'",
|
|
397
|
+
"name": "string.quoted.other"
|
|
657
398
|
},
|
|
658
399
|
{
|
|
659
|
-
"
|
|
660
|
-
"
|
|
400
|
+
"begin": "[Rr]\"(-*)\\[",
|
|
401
|
+
"end": "]\\1\"",
|
|
402
|
+
"name": "string.quoted.other"
|
|
661
403
|
},
|
|
662
404
|
{
|
|
663
|
-
"
|
|
664
|
-
"
|
|
405
|
+
"begin": "[Rr]'(-*)\\[",
|
|
406
|
+
"end": "]\\1'",
|
|
407
|
+
"name": "string.quoted.other"
|
|
665
408
|
},
|
|
666
409
|
{
|
|
667
|
-
"
|
|
668
|
-
"
|
|
410
|
+
"begin": "[Rr]\"(-*)\\(",
|
|
411
|
+
"end": "\\)\\1\"",
|
|
412
|
+
"name": "string.quoted.other"
|
|
669
413
|
},
|
|
670
414
|
{
|
|
671
|
-
"
|
|
672
|
-
"
|
|
415
|
+
"begin": "[Rr]'(-*)\\(",
|
|
416
|
+
"end": "\\)\\1'",
|
|
417
|
+
"name": "string.quoted.other"
|
|
673
418
|
}
|
|
674
419
|
]
|
|
675
420
|
},
|
|
676
421
|
"roxygen": {
|
|
422
|
+
"begin": "^(\\s*#+')",
|
|
423
|
+
"beginCaptures": {
|
|
424
|
+
"1": {
|
|
425
|
+
"name": "comment.line.roxygen"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"end": "$",
|
|
677
429
|
"patterns": [
|
|
678
430
|
{
|
|
679
|
-
"
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
"
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
"1": {
|
|
691
|
-
"name": "keyword.other.r"
|
|
692
|
-
},
|
|
693
|
-
"2": {
|
|
694
|
-
"name": "variable.parameter.r"
|
|
695
|
-
}
|
|
696
|
-
},
|
|
697
|
-
"match": "(@param)\\s*([.A-Z_a-z][.\\w]*|`[^`]+`)"
|
|
698
|
-
},
|
|
699
|
-
{
|
|
700
|
-
"match": "@[0-9A-Za-z]+",
|
|
701
|
-
"name": "keyword.other.r"
|
|
702
|
-
}
|
|
703
|
-
]
|
|
431
|
+
"include": "#markdown"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"include": "#roxygen-tokens"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"include": "#latex"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"match": ".",
|
|
441
|
+
"name": "comment.line"
|
|
704
442
|
}
|
|
705
443
|
]
|
|
706
444
|
},
|
|
707
|
-
"
|
|
708
|
-
"
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
"
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
"end": "(\\))",
|
|
721
|
-
"endCaptures": {
|
|
722
|
-
"1": {
|
|
723
|
-
"name": "punctuation.definition.arguments.end.r"
|
|
724
|
-
}
|
|
725
|
-
},
|
|
726
|
-
"name": "meta.function-call.r",
|
|
445
|
+
"roxygen-example": {
|
|
446
|
+
"begin": "^(\\s*#+')\\s*(?:(@examples)\\s*|(@examplesIf)\\s+(.*))$",
|
|
447
|
+
"beginCaptures": {
|
|
448
|
+
"1": {
|
|
449
|
+
"name": "comment.line"
|
|
450
|
+
},
|
|
451
|
+
"2": {
|
|
452
|
+
"name": "keyword.other"
|
|
453
|
+
},
|
|
454
|
+
"3": {
|
|
455
|
+
"name": "keyword.other"
|
|
456
|
+
},
|
|
457
|
+
"4": {
|
|
727
458
|
"patterns": [
|
|
728
459
|
{
|
|
729
|
-
"include": "#
|
|
460
|
+
"include": "#expression"
|
|
730
461
|
}
|
|
731
462
|
]
|
|
732
463
|
}
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
"strings": {
|
|
464
|
+
},
|
|
465
|
+
"end": "^(?:\\s*(?=#+'\\s*@)|\\s*(?!#+'))",
|
|
736
466
|
"patterns": [
|
|
737
467
|
{
|
|
738
|
-
"
|
|
739
|
-
"
|
|
740
|
-
"0": {
|
|
741
|
-
"name": "punctuation.definition.string.raw.begin.r"
|
|
742
|
-
}
|
|
743
|
-
},
|
|
744
|
-
"end": "]\\1\"",
|
|
745
|
-
"endCaptures": {
|
|
746
|
-
"0": {
|
|
747
|
-
"name": "punctuation.definition.string.raw.end.r"
|
|
748
|
-
}
|
|
749
|
-
},
|
|
750
|
-
"name": "string.quoted.double.raw.r"
|
|
468
|
+
"match": "^\\s*#+'",
|
|
469
|
+
"name": "comment.line"
|
|
751
470
|
},
|
|
752
471
|
{
|
|
753
|
-
"
|
|
754
|
-
"
|
|
755
|
-
"0": {
|
|
756
|
-
"name": "punctuation.definition.string.raw.begin.r"
|
|
757
|
-
}
|
|
758
|
-
},
|
|
759
|
-
"end": "]\\1'",
|
|
760
|
-
"endCaptures": {
|
|
761
|
-
"0": {
|
|
762
|
-
"name": "punctuation.definition.string.raw.end.r"
|
|
763
|
-
}
|
|
764
|
-
},
|
|
765
|
-
"name": "string.quoted.single.raw.r"
|
|
472
|
+
"match": "[]()\\[{}]",
|
|
473
|
+
"name": "meta.bracket"
|
|
766
474
|
},
|
|
767
475
|
{
|
|
768
|
-
"
|
|
769
|
-
"beginCaptures": {
|
|
770
|
-
"0": {
|
|
771
|
-
"name": "punctuation.definition.string.raw.begin.r"
|
|
772
|
-
}
|
|
773
|
-
},
|
|
774
|
-
"end": "}\\1\"",
|
|
775
|
-
"endCaptures": {
|
|
776
|
-
"0": {
|
|
777
|
-
"name": "punctuation.definition.string.raw.end.r"
|
|
778
|
-
}
|
|
779
|
-
},
|
|
780
|
-
"name": "string.quoted.double.raw.r"
|
|
476
|
+
"include": "#latex"
|
|
781
477
|
},
|
|
782
478
|
{
|
|
783
|
-
"
|
|
784
|
-
"beginCaptures": {
|
|
785
|
-
"0": {
|
|
786
|
-
"name": "punctuation.definition.string.raw.begin.r"
|
|
787
|
-
}
|
|
788
|
-
},
|
|
789
|
-
"end": "}\\1'",
|
|
790
|
-
"endCaptures": {
|
|
791
|
-
"0": {
|
|
792
|
-
"name": "punctuation.definition.string.raw.end.r"
|
|
793
|
-
}
|
|
794
|
-
},
|
|
795
|
-
"name": "string.quoted.single.raw.r"
|
|
479
|
+
"include": "#roxygen-tokens"
|
|
796
480
|
},
|
|
797
481
|
{
|
|
798
|
-
"
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
"end": "\\)\\1\"",
|
|
805
|
-
"endCaptures": {
|
|
806
|
-
"0": {
|
|
807
|
-
"name": "punctuation.definition.string.raw.end.r"
|
|
808
|
-
}
|
|
809
|
-
},
|
|
810
|
-
"name": "string.quoted.double.raw.r"
|
|
811
|
-
},
|
|
482
|
+
"include": "#basic-roxygen-example"
|
|
483
|
+
}
|
|
484
|
+
]
|
|
485
|
+
},
|
|
486
|
+
"roxygen-tokens": {
|
|
487
|
+
"patterns": [
|
|
812
488
|
{
|
|
813
|
-
"
|
|
814
|
-
"
|
|
815
|
-
"0": {
|
|
816
|
-
"name": "punctuation.definition.string.raw.begin.r"
|
|
817
|
-
}
|
|
818
|
-
},
|
|
819
|
-
"end": "\\)\\1'",
|
|
820
|
-
"endCaptures": {
|
|
821
|
-
"0": {
|
|
822
|
-
"name": "punctuation.definition.string.raw.end.r"
|
|
823
|
-
}
|
|
824
|
-
},
|
|
825
|
-
"name": "string.quoted.single.raw.r"
|
|
489
|
+
"match": "@@",
|
|
490
|
+
"name": "constant.character.escape"
|
|
826
491
|
},
|
|
827
492
|
{
|
|
828
|
-
"begin": "
|
|
493
|
+
"begin": "(@(?:param|field|slot))\\s*",
|
|
829
494
|
"beginCaptures": {
|
|
830
|
-
"
|
|
831
|
-
"name": "
|
|
832
|
-
}
|
|
833
|
-
},
|
|
834
|
-
"end": "\"",
|
|
835
|
-
"endCaptures": {
|
|
836
|
-
"0": {
|
|
837
|
-
"name": "punctuation.definition.string.end.r"
|
|
495
|
+
"1": {
|
|
496
|
+
"name": "keyword.other"
|
|
838
497
|
}
|
|
839
498
|
},
|
|
840
|
-
"
|
|
499
|
+
"end": "\\s|$",
|
|
841
500
|
"patterns": [
|
|
842
501
|
{
|
|
843
|
-
"match": "
|
|
844
|
-
"name": "
|
|
502
|
+
"match": "([.\\w]+)",
|
|
503
|
+
"name": "variable.parameter"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"match": ",",
|
|
507
|
+
"name": "keyword.operator"
|
|
845
508
|
}
|
|
846
509
|
]
|
|
847
510
|
},
|
|
848
511
|
{
|
|
849
|
-
"
|
|
850
|
-
"
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
"name": "string.quoted.single.r",
|
|
862
|
-
"patterns": [
|
|
863
|
-
{
|
|
864
|
-
"match": "\\\\.",
|
|
865
|
-
"name": "constant.character.escape.r"
|
|
866
|
-
}
|
|
867
|
-
]
|
|
512
|
+
"match": "@(?!@)\\w*",
|
|
513
|
+
"name": "keyword.other"
|
|
514
|
+
}
|
|
515
|
+
]
|
|
516
|
+
},
|
|
517
|
+
"strings": {
|
|
518
|
+
"patterns": [
|
|
519
|
+
{
|
|
520
|
+
"include": "#qstring"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"include": "#qqstring"
|
|
868
524
|
}
|
|
869
525
|
]
|
|
870
526
|
}
|