GtkSourceBuffer regexp



Hi

I am using libgtksourceview for a SQL editor widget, and, when adding
the set of SQL keywords:

tag = gtk_pattern_tag_new ("keywords",
"\\b\\(alter\\|and\\|as\\|begin\\|by\\|commit\\|create\\|delete"
"\\|drop\\|exists\\|from\\|group\\|having\\|in\\|insert\\|into"
"\\|is\\|not\\|null\\|or\\|order\\|rollback\\|select\\|set"                                  "\\|table\\|update\\|values\\|view\\|where\\)\\b");

How can I make this be case insensitive, so that Select, SELECT, and
select are all highlighted?

cheers




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]