Commit 6f571b80 authored by Daniel Espinosa Ortiz's avatar Daniel Espinosa Ortiz

server: added identifiers symbols to DocumentSymbol table

parent 083063e6
......@@ -185,10 +185,12 @@ public class GVls.GServer : GLib.Object, ContainerHashable, Server
sc.keyword.connect ((k)=>{
l.add (k);
});
sc.identifier.connect ((l, n)=>{
sc.identifier.connect ((loc, n)=>{
var sym = get_symbol (n);
if (sym != null) {
sym.word_location = l;
message ("Found: associating: %s at: %s", sym.name, loc.to_string ());
sym.word_location = loc;
l.add (sym);
}
});
try {
......
......@@ -36,7 +36,7 @@ public class GVlsui.SourceView : Gtk.SourceView
get_buffer ().create_tag ("keyword", "weight", Pango.Weight.BOLD, "foreground", "#a40000");
get_buffer ().create_tag ("text", "weight", Pango.Weight.NORMAL, "foreground", "#729fcf");
get_buffer ().create_tag ("number", "weight", Pango.Weight.BOLD, "foreground", "#ad7fa8");
get_buffer ().create_tag ("method", "weight", Pango.Weight.NORMAL, "foreground", "#3465a4");
get_buffer ().create_tag ("method", "weight", Pango.Weight.BOLD, "foreground", "#729fcf");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment