How would people feel about this diff in the C syntax bundle?
It will work on functions of the form:
int
main () {
but not on
int main()
What would be the appropriate regexp for making it work in both
cases? What I'm trying to do is get the functions to show up in the
Symbols menu.
The other thing that's broken with C is that #defines which are not
functions are incorrectly marked as functions. For instance:
#define FOOBAR 10
adds FOOBAR to the symbols menu. I think that's because the regexp
that handles #defines tries to handle the case where the #define is
really a macro
#define MIN(a,b) ((a)<(b)?(a):(b))
but applies the name even if the syntax doesn't match... I'll take a
look at this later this week if no one has a workaround...
@@ -140,6 +140,20 @@
</array>
</dict>
<dict>
+ <key>captures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+
<string>entity.name.function.c</string>
+ </dict>
+ </dict>
+ <key>match</key>
+ <string>^([a-zA-Z_][a-zA-Z0-9_]*)\s*\(</string>
+ <key>name</key>
+ <string>source.c.function</string>
+ </dict>
+ <dict>
<key>begin</key>
<string>^\s*#\s*(define)\s+([a-zA-Z_][a-zA-
Z0-9_]*)(?:\(
((?:\s*[a-zA-Z_][a-zA-Z0-9_]*\s*,?)*)\)|\b)</string>
<key>captures</key>
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
A few days ago the create new file button in the drawer stopped
working. Whenever I tried to create a new file, TM crashed. Then
whenever I'd go into a terminal to fiddle, I'd get some error (sorry
to so vague) about resource fork not being available.
I would force crash textmate, and killall bash, and all would work
again - but each time I tried to create a file (I sure hope it works
this time...), I had to do it all over again.
Last night I made the same error, textmate crashed, but I never got
to killing the runaway bash process. I woke up and my computer fan
was just screaming, a quick top showed a runaway bash process going
at 75% cpu and fifty others! Here's a snip:
--------------------------------
kjell 26675 74.2 0.1 27880 900 ?? R 1:09AM
430:19.31 /bin/bash -c touch "$TM_NEW_FILE"
kjell 26571 0.4 0.1 27880 980 p3 S 12:57AM 0:00.12
-bash
kjell 26606 0.0 0.1 27880 764 ?? S 1:09AM
0:00.04 /bin/bash -c touch "$TM_NEW_FILE"
kjell 26608 0.0 0.1 27880 508 ?? S 1:09AM
0:00.01 /bin/bash -c touch "$TM_NEW_FILE"
[35 more like the last two...]
--------------------------------
What could be going wrong? I'd love to have it fixed, if possible.
The problem has reared it's ugly head with both beta1.17 and r421,
and is getting to be a real pain. Anyone have an idea what's wrong?
Kjell [http://station11.net]
I just posted an FAQ question with regard to the subject line that
was (almost) instantaneously answered. Thanks to whoever was
responsible for that! :)
I'm trying to figure out how I might get TextMate to run on my new
Mac/Intel box and I've run in to some problems. I documented the
error message I received from build 731 at http://inquirylabs.com.
However, as of build 753, I now receive no error message at all. The
application crashes without a sputter.
Is there anything I can send that would help diagnose or debug this
situation? Thanks,
Duane Johnson
(canadaduane)
Hi,
Type and select the string
"£"
in an html document
Hit cmd-shift-& and choose "Convert to named entity"
expected: british pounds sterling symbol
obtained: ampersand (&)
reference: <http://www.w3.org/TR/WD-entities-961125>
<!ENTITY pound CDATA "£" -- pound sterling sign -->
<!ENTITY amp CDATA "&" -- ampersand, U0026 ISOnum -->
Not really sure anything can be done to help it if we want the
current set of features, but is you type something like this in Ruby:
<<-HTML
<style>
HTML
foo = 21
The 'foo = 21' part and the rest of the document is colored like a
style-sheet. Normally this would be incorrect nesting of course, but
for heredocs in languages, there can be good reasons for this (and
it's in fact used in tmruby).
-- Sune.
Is there any chance of being able to set a preference where the code
collapsing is not based on indentation? To be honest I'm not sure
how other applications have handled collapsing programmatically, but
basing it on indentation seems to be a bit buggy and doesn't work for
every situation.
Thanks,
Colin D. Devroe
Blog: http://theubergeeks.net/
Photos: http://flickr.com/photos/cdevroe/
I guess this is just a bug, but if you drop a (real) folder into a textmate
virtual project folder, you cannot then move it to the top level.
____________________
"Let the people decide through the marketplace mechanisms what they
wish to see and hear. Why is there this national obsession to
tamper with this box of transistors and tubes when we don't do the
same for 'Time' magazine?"
-- Mark Fowler, former FCC Chairman
Allan,
Just in case you hadn¹t spotted this...
It seems as though the v731 update, which greys out commands when there isnt
a document open also greys out items under the New From Template menu
command, which presumably isnt supposed to happen.
Regards
Chris
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________