diff options
author | Pacien TRAN-GIRARD | 2014-05-12 22:18:02 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-05-12 22:18:02 +0200 |
commit | ab4cae65f423ecaff16345051007c7002cba797b (patch) | |
tree | 64fda11b12ab806c18f209fed9fccc0614cd7e21 /js/prettify/lang-r.js | |
parent | 589b7856a8127dd050ca7c66ea73245dc0b328eb (diff) | |
download | io-slides-remote-ab4cae65f423ecaff16345051007c7002cba797b.tar.gz |
Update prettify
Diffstat (limited to 'js/prettify/lang-r.js')
-rw-r--r-- | js/prettify/lang-r.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/prettify/lang-r.js b/js/prettify/lang-r.js new file mode 100644 index 0000000..99af8f8 --- /dev/null +++ b/js/prettify/lang-r.js | |||
@@ -0,0 +1,2 @@ | |||
1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^'\\]|\\[\S\s])*(?:'|$)/,null,"'"]],[["com",/^#.*/],["kwd",/^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![\w.])/],["lit",/^0[Xx][\dA-Fa-f]+([Pp]\d+)?[Li]?/],["lit",/^[+-]?(\d+(\.\d+)?|\.\d+)([Ee][+-]?\d+)?[Li]?/],["lit",/^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|\d+))(?![\w.])/], | ||
2 | ["pun",/^(?:<<?-|->>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|[!*+/^]|%.*?%|[$=@~]|:{1,3}|[(),;?[\]{}])/],["pln",/^(?:[A-Za-z]+[\w.]*|\.[^\W\d][\w.]*)(?![\w.])/],["str",/^`.+`/]]),["r","s","R","S","Splus"]); | ||