Public bug reported:

Binary package hint: gedit

When a .vala file starts with a comment, not all of the syntax will be
colored correctly. For an example, use this code from
http://live.gnome.org/Vala/BasicSample

/* Basic Vala Sample Code */
using GLib;

public class Sample : Object {
        public Sample () {
        }

        public void run () {
                stdout.printf ("Hello World\n");
        }

        static int main (string[] args) {
                var sample = new Sample ();
                sample.run ();
                return 0;
        }
}


Save as sample.vala. To get proper highlighting, you will have to delete
the comment and any newlines before the first line of code, and then
save. If you insert the comment again and then save, the syntax will
again lose highlighting. This holds true for /* multiline */ and //
singleline comments.

Basically, as long as there is a comment before the first line of vala
code, gedit will not highlight correctly.

ProblemType: Bug
Architecture: amd64
Date: Sat Feb  2 21:49:34 2008
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/gedit
NonfreeKernelModules: vmnet vmblock vmmon nvidia
Package: gedit 2.20.3-0ubuntu1
PackageArchitecture: amd64
ProcCmdline: gedit
ProcCwd: /home/matt
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gedit
Uname: Linux pancho 2.6.22-14-rt #1 SMP PREEMPT RT Tue Dec 18 06:37:06 UTC 2007 
x86_64 GNU/Linux

** Affects: gedit (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug

-- 
gedit + vala syntax highlighting problem
https://bugs.launchpad.net/bugs/188528
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug contact for gedit in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to