[TxMt] RegExp n00b
andreaswahlin at bredband.net
Tue Sep 13 12:27:49 UTC 2005
almost everything after your little help there Allan :)
foldingStartMarker = "^\\s*([A-Za-z0-9.]+s*=\\s*)?(function)\\b";
what does the = sign mean? Does \\b mean ending bracket? And why
isn't the s there escaped, or should it match the letter s how many
times you want (considering the * after it)?
match = "^\\s*(function)\\s*([a-zA-Z_]\\w*)\\s*\\(([^)]*)\\)";
This one I get almost completely, except the ([^)]*) part. My only
guess is that it means something like how many )'s you want at the
end of the string or something, but that hardly seems necessary.
Also, is it the matching of meta.function.js that dictates matches in
command+shift+t (go to symbol)?
thanks for all the help, I'll obviously be sure to post back the
More information about the textmate