I'm just updating the Perl language definition to support the new
keywords and operators in 5.10. I notice that keyword.control.perl
includes 'switch' and 'case' (which aren't Perl keywords; it's given/
when in 5.10) and also 'select' which is a function rather than a
control keyword.
Is there a compelling reason not to remove switch, case and move
select to the functions list?
Also, because I'm a TM language definition newbie, does anyone have
any tips about how to handle the // (defined or) operator? In some
contexts // is an empty regex; in others it's an operator
my @x = split //, $line; # regex, common idiom to chop into chars
my $x = $y // $z; # operator, equiv: my $x = defined $y ? $y : $z
--
Andy Armstrong, Hexten
My absence through January was caused by a longer trip to the southern
part of Africa (South Africa, Botswana, Zimbabwe, and a short day-trip
to Zambia).
I’ll be going through mailing list letters chronologically the next
couple of days and hopefully reply to most unanswered questions etc.
In a Ruby file, when I press command-R to run, about half the time I get an
error indicating that we tried to compile as an Xcode project and we are not
an Xcode project. Why is TextMate doing this and how can I prevent it? The
language thingy at the bottom says it's Ruby so clearly someone in there
knows it is; it just doesn't seem to be the same guy who responds to
command-R. Thx. m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
I'm having problems with the standard subversion integration in
leopard. When I try to do a log command in textmate I get the
following in the popup window:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/rexml/source.rb:226:in `pos': Illegal seek (Errno::ESPIPE) from /
System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
rexml/source.rb:226:in `current_line' from /System/Library/Frameworks/
Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rexml/parseexception.rb:
44:in `line' from /System/Library/Frameworks/Ruby.framework/Versions/
1.8/usr/lib/ruby/1.8/rexml/parseexception.rb:28:in `to_s' from /
Applications/TextMate.app/Contents/SharedSupport/Support/lib/escape.rb:
30:in `htmlize' from /Applications/TextMate.app/Contents/SharedSupport/
Bundles/Subversion.tmbundle/Support/svn_helper.rb:90:in
`handle_default_exceptions' from /Applications/TextMate.app/Contents/
SharedSupport/Bundles/Subversion.tmbundle/Support/format_log_xml.rb:171
REXML::ParseException
I don't have any custom bundles loaded and I haven't done anything to
the stock leopard ruby installation. Leopard was a scratch install on
this machine too, so there shouldn't be any cruft left laying around
from Tiger.
Any ideas?
Matt
Has anyone else gotten this effect?
I post to my blog with the TextMate blogging bundle (thanks, Brad!),
and if I go to re-edit a post, the timestamp changes. As far as I can
tell, that's related to me getting back a timestamp in the TextMate
document that says something like:
Date: 2008-01-19 16:32:44 -0500
...which is roughly 9:30pm EST, according to my blog. If I re-publish
that post from TextMate with that datestamp in there, it suddenly then
becomes:
Date: 2008-01-19 11:32:44 -0500
...which shows up as roughtly 4:30pm. If I edit a post multiple times,
it keeps subtracting 5 hours, to the point that I can even end up at
the point of it having been posted the previous day.
Do I have something set up wrong here, or is there a workaround?
Thanks for any help!
Cheers,
MB
Hi
I am new to the world of textmate and java programming. I have
searched the Textmate blog and Java Forum for answers but nothing.
The program compiles and runs in the terminal by using javac Bert.java
and java Bert
But as soon as I want to use Textmate to compile and run the error is
returned:
Exception in thread "main" java.lang.NumberFormatException: null
Must be textmate problem. Could someone help me?
The short program that is want to compile and run is as follows:
import java.io.*;
public class Bert
{
public static void main(String[] args) throws IOException
{
//Declaring Variables
int price, downpayment, tradeIn, months, loanAmt;
double annualInterest, payment, interest;
String custName, inputPrice, inputDownPayment, inputTradeIn,
inputMonths, inputAnnualInterest;
BufferedReader dataIn = new BufferedReader(new
InputStreamReader(System.in));
//Get Input from User
System.out.println("What is your name? ");
custName = dataIn.readLine();
System.out.print("What is the price of the car? ");
inputPrice = dataIn.readLine();
System.out.print("What is the downpayment? ");
inputDownPayment = dataIn.readLine();
System.out.print("What is the trade-in value? ");
inputTradeIn = dataIn.readLine();
System.out.print("For how many months is the loan? ");
inputMonths = dataIn.readLine();
System.out.print("What is the decimal interest rate? ");
inputAnnualInterest = dataIn.readLine();
//Conversions
price = Integer.parseInt(inputPrice);
downpayment = Integer.parseInt(inputDownPayment);
tradeIn = Integer.parseInt(inputTradeIn);
months = Integer.parseInt(inputMonths);
annualInterest = Double.parseDouble(inputAnnualInterest);
//Calculations
interest = annualInterest / 12;
loanAmt = price - downpayment - tradeIn;
payment = loanAmt / ((1 / interest) - ( 1 / (interest * Math.pow(1 +
interest, months))));
//Output
System.out.print("The monthly payment for " + custName + " is $");
System.out.println(payment);
}
}
Hi
I've been browsing the list archive but cannot reaaly find an answer to
my problem. It has to do either with the blog setup
(com.macromates.textmate.blogging.text) or with teh communication with
my wordpress blog.
For some non understandable reason I destoryed my blog setup and now I
am f*cked. When enterning in the com.macromates.textmate.blogging.text
file the items $blgname $blog-url, I receive a "Received excepttion.
Wrong content-type: No blogs are availble".Wwhich is of course utterly
untrue :/
So how to fix this?
Regards, Judith
Hi,
maybe someone is able to give me an hint (esp. regexp and grammar
experts ;)
I'm writing a Language and I want to include TM's folding feature.
foldingStartMarker :=
each line which begins with '>' AND the next line does not begin with
'>'
foldingStopMarker :=
each line which does not begin with '>' AND the next line begins with
'>'
Fine.
I tried:
foldingStartMarker = '^>[^\n]*$(?!\n>)';
foldingStopMarker = '^[^>][^\n]*$(?=\n>)';
but it does not work. If I test these regexps in Find&Replace Dialog
it works.
What am I doing wrong? Or is this not possible?
Here's an example how it should look like:
v > foo
^ blabal
> foofoo
v > foofoofoo
blablabla
blablabla
blablabla
blablabla
^ blablabla
v > bla
^ foo
>
whereby 'v' := foldingStartMarker ; '^' := foldingStopMarker
Many thanks in advance,
--Hans
Dear all,
please forgive me if I'm totally wrong, but I didn't find some in the
net.
If I set some self-defined shell variables and TM installs a new
revision (cutting-edge) it seems to me that all my self-defined shell
variables are gone. Is this correct? If yes, is there a way to avoid it?
Many thanks,
--Hans