regex: \w and \W work for all characters. Also, \b and \B should work correctly.
This commit is contained in:
parent
50cf39d3d3
commit
dac0207fe6
@ -10,6 +10,9 @@ ______________________________________________________________________
|
|||||||
Notes for GoldED+ 1.1.5, /snapshot/
|
Notes for GoldED+ 1.1.5, /snapshot/
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
|
- regex: \w and \W work for all characters. Also, \b and \B should work
|
||||||
|
correctly.
|
||||||
|
|
||||||
- Fixed case sensitive advances search.
|
- Fixed case sensitive advances search.
|
||||||
|
|
||||||
+ AKAMatchManually will work also for forwards and new messages in netmail
|
+ AKAMatchManually will work also for forwards and new messages in netmail
|
||||||
|
@ -150,6 +150,9 @@ char *realloc ();
|
|||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
/* isalpha etc. are used for the character classes. */
|
||||||
|
#include <gctype.h>
|
||||||
|
|
||||||
/* Define the syntax stuff for \<, \>, etc. */
|
/* Define the syntax stuff for \<, \>, etc. */
|
||||||
|
|
||||||
/* This must be nonzero for the wordchar and notwordchar pattern
|
/* This must be nonzero for the wordchar and notwordchar pattern
|
||||||
@ -186,14 +189,17 @@ init_syntax_once ()
|
|||||||
|
|
||||||
bzero (re_syntax_table, sizeof re_syntax_table);
|
bzero (re_syntax_table, sizeof re_syntax_table);
|
||||||
|
|
||||||
for (c = 'a'; c <= 'z'; c++)
|
/* for (c = 'a'; c <= 'z'; c++)
|
||||||
re_syntax_table[c] = Sword;
|
re_syntax_table[c] = Sword;
|
||||||
|
|
||||||
for (c = 'A'; c <= 'Z'; c++)
|
for (c = 'A'; c <= 'Z'; c++)
|
||||||
re_syntax_table[c] = Sword;
|
re_syntax_table[c] = Sword;
|
||||||
|
|
||||||
for (c = '0'; c <= '9'; c++)
|
for (c = '0'; c <= '9'; c++)
|
||||||
re_syntax_table[c] = Sword;
|
re_syntax_table[c] = Sword; */
|
||||||
|
|
||||||
|
for (c = 0; c < 256; c++)
|
||||||
|
re_syntax_table[c] = isxalnum(c) ? Sword : 0;
|
||||||
|
|
||||||
re_syntax_table['_'] = Sword;
|
re_syntax_table['_'] = Sword;
|
||||||
|
|
||||||
@ -209,9 +215,6 @@ init_syntax_once ()
|
|||||||
/* Get the interface, including the syntax bits. */
|
/* Get the interface, including the syntax bits. */
|
||||||
#include "regex.h"
|
#include "regex.h"
|
||||||
|
|
||||||
/* isalpha etc. are used for the character classes. */
|
|
||||||
#include <gctype.h>
|
|
||||||
|
|
||||||
/* Jim Meyering writes:
|
/* Jim Meyering writes:
|
||||||
|
|
||||||
"... Some ctype macros are valid only for character codes that
|
"... Some ctype macros are valid only for character codes that
|
||||||
|
Reference in New Issue
Block a user