Mercurial > vim
comparison src/if_ruby.c @ 20548:6564dafe5005 v8.2.0828
patch 8.2.0828: Travis: regexp patttern doesn't work everywhere
Commit: https://github.com/vim/vim/commit/92c098d18e435a7a762409744ebe2dbb3746ed77
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 26 20:09:11 2020 +0200
patch 8.2.0828: Travis: regexp patttern doesn't work everywhere
Problem: Travis: regexp patttern doesn't work everywhere.
Solution: Use [:blank:] instead of \b. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/6146)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 26 May 2020 20:15:04 +0200 |
parents | a042d2a3b13d |
children | d571231175b4 |
comparison
equal
deleted
inserted
replaced
20547:5e6b9042a775 | 20548:6564dafe5005 |
---|---|
98 #if defined(DYNAMIC_RUBY) && RUBY_VERSION >= 26 | 98 #if defined(DYNAMIC_RUBY) && RUBY_VERSION >= 26 |
99 # define rb_ary_detransient rb_ary_detransient_stub | 99 # define rb_ary_detransient rb_ary_detransient_stub |
100 #endif | 100 #endif |
101 | 101 |
102 // On macOS pre-installed Ruby defines "SIZEOF_TIME_T" as "SIZEOF_LONG" so it | 102 // On macOS pre-installed Ruby defines "SIZEOF_TIME_T" as "SIZEOF_LONG" so it |
103 // conflicts with the definition in config.h then causes macro-redifned warning. | 103 // conflicts with the definition in config.h then causes a macro-redefined |
104 // warning. | |
104 #ifdef SIZEOF_TIME_T | 105 #ifdef SIZEOF_TIME_T |
105 # undef SIZEOF_TIME_T | 106 # undef SIZEOF_TIME_T |
106 #endif | 107 #endif |
107 | 108 |
108 #include <ruby.h> | 109 #include <ruby.h> |
109 #if RUBY_VERSION >= 19 | 110 #if RUBY_VERSION >= 19 |
110 # include <ruby/encoding.h> | 111 # include <ruby/encoding.h> |
111 #endif | 112 #endif |
112 #if RUBY_VERSION <= 18 | 113 #if RUBY_VERSION <= 18 |
113 # include <st.h> // for ST_STOP and ST_CONTINUE | 114 # include <st.h> // for ST_STOP and ST_CONTINUE |
115 #endif | |
116 | |
117 // See above. | |
118 #ifdef SIZEOF_TIME_T | |
119 # undef SIZEOF_TIME_T | |
114 #endif | 120 #endif |
115 | 121 |
116 #undef off_t // ruby defines off_t as _int64, Mingw uses long | 122 #undef off_t // ruby defines off_t as _int64, Mingw uses long |
117 #undef EXTERN | 123 #undef EXTERN |
118 #undef _ | 124 #undef _ |