wjhol / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

Add support for R/S language #233

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The attached file adds support for the R / Splus language.

Original issue reported on code.google.com by jeffrey....@gmail.com on 11 Aug 2012 at 2:35

GoogleCodeExporter commented 8 years ago
updated version of lang-r.js

Original comment by jeffrey....@gmail.com on 11 Aug 2012 at 3:52

GoogleCodeExporter commented 8 years ago
The most recent version of lang-r.js can be found at 
https://github.com/jrnold/prettify-lang-r-bugs.

Original comment by jeffrey....@gmail.com on 11 Aug 2012 at 3:32

GoogleCodeExporter commented 8 years ago
I attached a patch.

Original comment by jeffrey....@gmail.com on 12 Aug 2012 at 3:59

Attachments:

GoogleCodeExporter commented 8 years ago
I grabbed a snapshot of lang-r and lang-rd just now and submitted it as r232 
and will include that in an upcoming release.

$ shasum src/lang-r.js src/lang-rd.js 
7aa6fbd912af3a0435a4d837ecfea82ffb676a7e  src/lang-r.js
4f7c3d903ffe652873aa2c2c8855caee07d02f42  src/lang-rd.js

If you'd like to continue maintaining this on prettify's code.google page, I 
can grant contributor access.

Original comment by mikesamuel@gmail.com on 4 Feb 2013 at 11:36

GoogleCodeExporter commented 8 years ago
Issue 237 has been merged into this issue.

Original comment by mikesamuel@gmail.com on 4 Feb 2013 at 11:37

GoogleCodeExporter commented 8 years ago
http://google-code-prettify.googlecode.com/svn/trunk/tests/prettify_test_2.html#
r_lang includes your testcase.

Original comment by mikesamuel@gmail.com on 4 Feb 2013 at 11:46

GoogleCodeExporter commented 8 years ago
Alternatively, 
http://code.google.com/p/google-code-prettify/source/browse/trunk/js-modules/pre
ttify.js#681 might be a simpler approach since R and S seem to have fairly 
mainstream lexical-grammars.

Original comment by mikesamuel@gmail.com on 5 Feb 2013 at 12:17

GoogleCodeExporter commented 8 years ago
Issue 149 has been merged into this issue.

Original comment by mikesamuel@gmail.com on 5 Feb 2013 at 12:44

GoogleCodeExporter commented 8 years ago
If you want to grant me access I'll continue to maintain the R code. 

Original comment by jeffrey....@gmail.com on 5 Feb 2013 at 1:31

GoogleCodeExporter commented 8 years ago
I wish I had known about the sourceDecorator when I first wrote this. That 
would have almost certainly worked. But since the syntax highlighting seems to 
be working as is, and is probably more comprehensive than if I had used 
sourceDecorator, I guess I'll just keep it as is. If I have a reason to change 
it, I may switch it. 

Original comment by jeffrey....@gmail.com on 5 Feb 2013 at 1:33