[Bug 204547] Re: Fortran files: gedit code-comment plugin and gtksourceview
thanks, marking the report as confirmed. ** Changed in: gedit-plugins (Ubuntu) Status: Incomplete = Confirmed -- Fortran files: gedit code-comment plugin and gtksourceview https://bugs.launchpad.net/bugs/204547 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 204547] Re: Fortran files: gedit code-comment plugin and gtksourceview
** Attachment added: fortran.lang.txt http://launchpadlibrarian.net/30841703/fortran.lang.txt -- Fortran files: gedit code-comment plugin and gtksourceview https://bugs.launchpad.net/bugs/204547 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 204547] Re: Fortran files: gedit code-comment plugin and gtksourceview
Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Could you try the same with Karmic or Jaunty? Thanks in advance. ** Changed in: gedit-plugins (Ubuntu) Importance: Undecided = Low -- Fortran files: gedit code-comment plugin and gtksourceview https://bugs.launchpad.net/bugs/204547 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 204547] Re: Fortran files: gedit code-comment plugin and gtksourceview
Hi, The issue with wrong mime type assignment due to !- or uppercase file extension is solved in Jaunty (and, so far, it's working just fine in Karmic Alpha 4). Although the syntax highlighting still misbehaves. For example: ^program test ^character arg ^call testsub(arg) ^case('a') ^case default ^cycle ^end program test All the lines within the program block are highlighted as comments ---according to the fortran.lang file incluided with Jaunty and Karmi (alpha 4), that's due to a hack to avoid considering ^COMMON a comment. The hack, at line 46, is: start!|(^[Cc](\b|[^Oo]))/start A better form would be: start!|^[*]|(^[Cc](\b|[^OoAaHhYyLl]))/start Although there might be better ways (I've never been good at regular expressions). Also, there are some missing keywords (in regards to Fortran 95; e.g., ALLOCATE, DEALLOCATE, DEFAULT, INTERFACE...) and none of the Fortran 2003 keywords are included (e.g., BIND). GFortran has supported the Fortran 2003 ISO C Bindings (among other Fortran 2003 features) since 2006 at least, so it's about time they're included in the gtksourceview file. My version of the fortran.lang file was attached to a previous post in this bug report (it includes the new hack and the missing keywords, among others); it can be used to improve the current version of the fortran.lang file a little bit. -- Fortran files: gedit code-comment plugin and gtksourceview https://bugs.launchpad.net/bugs/204547 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 204547] Re: Fortran files: gedit code-comment plugin and gtksourceview
Is this symptom still reproducible in 8.10 or 9.04? ** Changed in: gedit-plugins (Ubuntu) Status: New = Incomplete -- Fortran files: gedit code-comment plugin and gtksourceview https://bugs.launchpad.net/bugs/204547 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 204547] Re: Fortran files: gedit code-comment plugin and gtksourceview
Hi, I'm still using Hardy (Network Manager issues in Intrepid make it unusable), and it's still too early for me to test 9.04. In Hardy, the code-comment plugin now works as expected ---although there are two extra entries in the Edit menu for commenting code (CtrlAltC and CtrlAltU), and those don't work. The source is still taken as text/x-vhdl if the first two characters in the source file are !- (without the quotes). I added some missing extensions to the freedesktop.org.xml file (*.f03; *.fpp and so on) and also modified the fortran.lang file ---I'm no xml expert so I don't know if modifying it made things worse... although it seems to work. The file is attached. That's it. John. ...:~$ lsb_release -rd Description:Ubuntu 8.04.1 Release:8.04 ...:~$ apt-cache policy gedit gedit: Installed: 2.22.3-0ubuntu1 Candidate: 2.22.3-0ubuntu1 Version table: *** 2.22.3-0ubuntu1 0 500 http://us.archive.ubuntu.com hardy-updates/main Packages 100 /var/lib/dpkg/status 2.22.1-0ubuntu1 0 500 http://us.archive.ubuntu.com hardy/main Packages ...:~$ apt-cache policy libgtksourceview2.0-0 libgtksourceview2.0-0: Installed: 2.2.2-0ubuntu1 Candidate: 2.2.2-0ubuntu1 Version table: *** 2.2.2-0ubuntu1 0 500 http://us.archive.ubuntu.com hardy-updates/main Packages 100 /var/lib/dpkg/status 2.2.1-1 0 500 http://us.archive.ubuntu.com hardy/main Packages At 04:24 PM 12/3/2008, you wrote: Is this symptom still reproducible in 8.10 or 9.04? ** Changed in: gedit-plugins (Ubuntu) Status: New = Incomplete -- Fortran files: gedit code-comment plugin and gtksourceview https://bugs.launchpad.net/bugs/204547 You received this bug notification because you are a direct subscriber of the bug. ** Attachment added: fortran.lang http://launchpadlibrarian.net/20195781/fortran.lang -- Fortran files: gedit code-comment plugin and gtksourceview https://bugs.launchpad.net/bugs/204547 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 204547] Re: Fortran files: gedit code-comment plugin and gtksourceview
There are two new issues, besides the one I pointed out above, with the way gedit highlights Fortran files: -If the file extension is F90 (instead of f90) and the file was originally written in MS-Windows, it is clasiffied as a MATLAB file (mime: text/x-matlab) -If the file extension is f or F, the file is not highlighted at all (i.e., the mime is text/plain). -- Fortran files: gedit code-comment plugin and gtksourceview https://bugs.launchpad.net/bugs/204547 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs