User forums > Using Code::Blocks
Using code::blocks debbug tools with Fortran
Il Nero:
--- Quote from: dmoore on July 26, 2007, 01:08:28 pm ---thanks for the info. before it gets lost, it needs to go on the wiki.
--- End quote ---
Hi dmoore, you are welcome.
I understand that you have already used code::blocks to program in fortran90/95; in such a case can you send me your lexer file? I have made one but I have problems with "interface blocks" folding (code::blocks recognizes the "interface blocks" but it interprets in a wrong way the key words "module procedure"); I don't know if the problem is due to "scintilla", but I think that my lexer is very bad...
Stefano
dmoore:
if you are using a reasonably recent nightly build (last month maybe -- I can't remember when I submitted the patch), you should already have mine. the lexer spec for fortran90 and above is in share\CodeBlocks\lexers\lexer_fortran.xml and not to be confused with lexer_f77.xml, which is the lexer for fortran77. By default it handles extensions .f90, .f95 and .f2k. You can add more extensions by editing the lexer file directly or changing the settings in editor settings->syntax highlighting (just check that your extensions don't overlap with those in lexer_f77.xml, because the lexer used will then depend on the order those files are loaded). if the highlighting is still strange, you can maybe play around with the keyword groups and see if that helps. Patches are welcome here (especially if you do a good job on colors/styles - i spent about 3 nano seconds thinking about them :) )
Il Nero:
Hi dmoore, thanks for your help!
I find two problems in the folding of this kind blocks:
1)
interface Name_Interface
module procedure Name_Procedure_1, &
Name_Procedure_2, &
Name_Procedure_3, &
Name_Procedure_4
endinterface
Code::Blocks interprets the the endinterface keyword as the end of the module (procedure) keyword and not as the end of the interface keyword. I think that this is due to the module keyword that appears after the interface keyword without the endmodule keyword. This is problem is due to scintilla or Code::Blocks?
2)
Code:.Blocks doesn't recognize a do cycle with a label, like the following:
Name_Cycle do i=1,100
enddo Name_Cycle
Anyone knows the solutions of these problems?
Stefano
Navigation
[0] Message Index
[*] Previous page
Go to full version