Alas, if this issue has been addressed, my google-fu is failing me. I use Ubuntu 11.04, and geany 0.20 right now. I love it! Geany I mean. I have a love/hate relationship with Ubuntu :) I use geany as part of my ruby development toolset, and am having a slight problem with trying to get the colors just right for items in double quotes, ie " when I write the following code:
Given /^I have a "([^"]*)"$/ do | item | #Awesome code for 'item' end
and save it as a ruby file, the " in the middle get's read as the matching quote for the first ". It's not, it's part of a regular expression. What's the best solution for making the middle " read as part of the string? Thanks! GB Hoyt Lakeland, FL
On 11 October 2011 14:47, GB Hoyt qrprat77@gmail.com wrote:
Alas, if this issue has been addressed, my google-fu is failing me. I use Ubuntu 11.04, and geany 0.20 right now. I love it! Geany I mean. I have a love/hate relationship with Ubuntu :) I use geany as part of my ruby development toolset, and am having a slight problem with trying to get the colors just right for items in double quotes, ie " when I write the following code:
Given /^I have a "([^"]*)"$/ do | item | #Awesome code for 'item' end
and save it as a ruby file, the " in the middle get's read as the matching quote for the first ". It's not, it's part of a regular expression. What's the best solution for making the middle " read as part of the string?
Hi,
The problem is in the parsing done by scintilla, the editing component used by Geany.
I know there were some recent upgrades to the ruby parser in scintilla.
Could you try the newly released Geany 0.21, it has a much newer scintilla version, though the ruby updates may be too recent to be included.
Cheers Lex
Thanks! GB Hoyt Lakeland, FL _______________________________________________ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On 10/11/2011 07:18 PM, Lex Trotman wrote:
Hi,
The problem is in the parsing done by scintilla, the editing component used by Geany.
I know there were some recent upgrades to the ruby parser in scintilla.
Could you try the newly released Geany 0.21, it has a much newer scintilla version, though the ruby updates may be too recent to be included.
Cheers Lex
Hi Lex, Thanks for the hint. I finally made the switch to built geany from git, and the original problem still persists, however, I also discovered that I was using the wrong practice in defining my regex. Once I changed practice, the problem disappears.
73! GB Hoyt KG4GVL Lakeland, FL
On 15 October 2011 23:55, GB Hoyt qrprat77@gmail.com wrote:
On 10/11/2011 07:18 PM, Lex Trotman wrote:
Hi,
The problem is in the parsing done by scintilla, the editing component used by Geany.
I know there were some recent upgrades to the ruby parser in scintilla.
Could you try the newly released Geany 0.21, it has a much newer scintilla version, though the ruby updates may be too recent to be included.
Cheers Lex
Hi Lex, Thanks for the hint. I finally made the switch to built geany from git, and the original problem still persists, however, I also discovered that I was using the wrong practice in defining my regex. Once I changed practice, the problem disappears.
73! GB Hoyt KG4GVL Lakeland, FL
Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
GB Hoyt,
Please tell us what the fix was, so that if anyone has a similar problem in the future, they can benefit from your research and troubleshooting.
Regards,
Russell
GB Hoyt,
Please tell us what the fix was, so that if anyone has a similar problem in the future, they can benefit from your research and troubleshooting.
Regards,
Russell _______________________________________________ Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
There wasn't a fix for the specific problem, /^ whatever "(^".*)"$/ still formats poorly, terminating the first " within the regex after the second ^. the workaround is to use /^ whatever (.*)$/ instead, not a real solution, just a workalike that keeps the colors pretty.
GB Hoyt KG4GVL Lakeland, FL