aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-10 20:08:51 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-10 20:08:51 +0100
commitf120e3e367f01f006bd5ddfd9f1ac018273e75e3 (patch)
tree65e51cfbc6bc05eb25d331bcb86ed642a1af6bad /parser.cpp
parent5aa548cd63edb8ba12c656300a2a5f0ff62a7b36 (diff)
downloadsciteco-f120e3e367f01f006bd5ddfd9f1ac018273e75e3.tar.gz
filename autocompletion using <CTRL/T> and <TAB>
* <TAB> autocompletion only in specified states * GtkInfoPopup widget to display possible completions, written using Gob2
Diffstat (limited to 'parser.cpp')
-rw-r--r--parser.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/parser.cpp b/parser.cpp
index f4abac4..0c1a697 100644
--- a/parser.cpp
+++ b/parser.cpp
@@ -12,7 +12,7 @@ gint macro_pc = 0;
States states;
-static State *current_state = &states.start;
+State *current_state = &states.start;
static struct {
bool colon;
@@ -27,8 +27,7 @@ static bool skip_else = false;
static gint nest_level = 0;
gchar *strings[2] = {NULL, NULL};
-
-static gchar escape_char = '\x1B';
+gchar escape_char = '\x1B';
bool
macro_execute(const gchar *macro)