[TxMt] Re: textmate Digest, Vol 39, Issue 25

Gregory Penn gregory.penn at gmail.com
Thu Sep 1 00:33:45 UTC 2011


I got it sorted out a few days ago. I'm embarrassed to admit it, but it was an errant bit of code, which I finally weeded out. Thanks for the suggestion, though!
 
On Aug 31, 2011, at 6:00 AM, textmate-request at lists.macromates.com wrote:

> Send textmate mailing list submissions to
> 	textmate at lists.macromates.com
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.macromates.com/listinfo/textmate
> or, via email, send a message with subject or body 'help' to
> 	textmate-request at lists.macromates.com
> 
> You can reach the person managing the list at
> 	textmate-owner at lists.macromates.com
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of textmate digest..."
> 
> 
> Today's Topics:
> 
>   1.  Re: Syntax highlighting problem with .rnw file (SWeave
>      bundle) (Peter Cowan)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Tue, 30 Aug 2011 09:39:38 -0700
> From: Peter Cowan <cowan.pd at gmail.com>
> To: TextMate users <textmate at lists.macromates.com>
> Subject: [TxMt] Re: Syntax highlighting problem with .rnw file (SWeave
> 	bundle)
> Message-ID:
> 	<CAM4gt+5FOdZzG-Umm7ALd1xuOiFbYX_vAa8jL_UOhcRvSr8JYg at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> On Wed, Aug 24, 2011 at 7:23 AM, Gregory Penn <gregory.penn at gmail.com> wrote:
>> Thanks to Eric Cheng, I was able to update my SWeave bundle from github and it's commands seem to be working correctly. So on to the next problem . . .
>> 
>> TextMate's syntax highlighting in foo.rnw isn't recognizing R code between the "<<>>=" and "@" tags that delimit it, instead it is treated as LaTeX code. This is a problem because R makes frequent use of the "$" symbol, which toggles math-mode in LaTeX. As a result, where I have an odd number of "$"s in a chunk of R code, any LaTeX following that R code will appear highlighted green, as though it were in math mode.
>> 
>> I've read the documentation for scopes and languages, but didn't understand it well enough to figure out where this is going wrong and how to fix it.
>> 
> 
> I assume that you have the R bundle installed?  Are you sure that the
> language is set to SWeave when you open .Rnw file?  Have you tried
> putting empty lines before and after both "<<>>=" and "@" tags?  I
> seem to remember a small issue with that in the SWeave bundle, if that
> is the issue I might have a fix I can dig out.
> 
> HTH
> 
> Peter
> 
>> Thanks in advance,
>> Gregory Penn
>> 
>> _______________________________________________
>> textmate mailing list
>> textmate at lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
> 
> End of textmate Digest, Vol 39, Issue 25
> ****************************************



More information about the textmate mailing list