| 1 |
import { l as languages } from "../../index-C1_GGQ8y.js"; |
| 2 |
languages.r = { |
| 3 |
"comment": /#.*/, |
| 4 |
"string": { |
| 5 |
pattern: /(["'])(?:\\.|(?!\1)[^\\\n])*\1/g, |
| 6 |
greedy: true |
| 7 |
}, |
| 8 |
"percent-operator": { |
| 9 |
// Includes user-defined operators |
| 10 |
// and %%, %*%, %/%, %in%, %o%, %x% |
| 11 |
pattern: /%[^%\s]*%/, |
| 12 |
alias: "operator" |
| 13 |
}, |
| 14 |
"boolean": /\b(?:FALSE|TRUE)\b/, |
| 15 |
"ellipsis": /\.\.(?:\.|\d+)/, |
| 16 |
"number": [ |
| 17 |
/\b(?:Inf|NaN)\b/, |
| 18 |
/(?:\b0x[a-fA-F\d]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/ |
| 19 |
], |
| 20 |
"keyword": /\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/, |
| 21 |
"operator": /->>?|<=|<<?-|[!=<>]=?|::?|&&?|\|\|?|[~^$@/*+-]/, |
| 22 |
"punctuation": /[()[\]{},;]/ |
| 23 |
}; |
| 24 |
//# sourceMappingURL=r.js.map |