1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
From 3962d7ba10c5dfe9f57d60ff69994c15ab68c69e Mon Sep 17 00:00:00 2001
From: papaeye <papaeye@gmail.com>
Date: Fri, 19 Dec 2014 19:17:16 +0900
Subject: [PATCH 28/36] Revert "Fix Emacs space-or-newline regexp"
This reverts commit a1685814bd9d2a65ccba5db53f2e026554d33353.
---
src/main.c | 2 +-
src/rxgen.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main.c b/src/main.c
index e0ef1ba..4abb344 100644
--- a/src/main.c
+++ b/src/main.c
@@ -178,7 +178,7 @@ main(int argc, char** argv)
migemo_set_operator(pmigemo, MIGEMO_OPINDEX_NEST_IN, "\\(");
migemo_set_operator(pmigemo, MIGEMO_OPINDEX_NEST_OUT, "\\)");
if (!mode_nonewline)
- migemo_set_operator(pmigemo, MIGEMO_OPINDEX_NEWLINE, "[[:space:]\r\n]*");
+ migemo_set_operator(pmigemo, MIGEMO_OPINDEX_NEWLINE, "\\s-*");
}
#ifndef _PROFILE
if (word)
diff --git a/src/rxgen.c b/src/rxgen.c
index afe2b3d..27bde73 100644
--- a/src/rxgen.c
+++ b/src/rxgen.c
@@ -22,7 +22,7 @@
#define RXGEN_ENC_SJISTINY
//#define RXGEN_OP_VIM
-#define RXGEN_OP_MAXLEN 16
+#define RXGEN_OP_MAXLEN 8
#define RXGEN_OP_OR "|"
#define RXGEN_OP_NEST_IN "("
#define RXGEN_OP_NEST_OUT ")"
--
2.39.2
|