From fad826dcfe095d57aa5faf6cc8a863069f65b0d6 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 24 Nov 2012 17:56:29 +0100 Subject: allow symbolic names (symbols) being specified for the scintilla (ES) command * new syntax is <[lParam,[wParam,[msg]]]>ES[msg[,wParam[,lParam]]]$[lParam string]$ * symbols are matched case-insensitive, the leading SCI_ for message symbols may be omitted * added support for more multiple string arguments (for commands in general) * fixed "C conditional: succeeds for every alpanumeric character, dot, dollar or underscore * added SCLEX_ and SCE_ constants as symbols * updated teco.ini: using symbolic names is preferred since that way code does not depend on the current Scintilla version --- symbols.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'symbols.h') diff --git a/symbols.h b/symbols.h index 735fdda..a603b3b 100644 --- a/symbols.h +++ b/symbols.h @@ -18,12 +18,14 @@ public: SymbolList(const Entry *_entries = NULL, gint _size = 0) : entries(_entries), size(_size) {} - gint lookup(const gchar *name); + gint lookup(const gchar *name, const gchar *prefix = "", + bool case_sensitive = false); GList *get_glist(void); }; namespace Symbols { extern SymbolList __attribute__((weak)) scintilla; + extern SymbolList __attribute__((weak)) scilexer; } #endif -- cgit v1.2.3