-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update vendored re * Go from 1.7.1 to 1.9.0 * Do not just use a subset, use all of re. This simplifies maintenance * Custom modifications are generated in the bash script. This simplifies updates. Signed-off-by: Rudi Grinberg <me@rgrinberg.com> * Fix update script Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
- Loading branch information
Showing
32 changed files
with
3,526 additions
and
1,550 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
type t = int | ||
let equal (x : int) (y : int) = x = y | ||
let compare (x : int) (y : int) = compare x y | ||
let to_int x = x | ||
let pp = Format.pp_print_int | ||
|
||
let intersect x y = x land y <> 0 | ||
let (++) x y = x lor y | ||
|
||
let dummy = -1 | ||
let inexistant = 1 | ||
let letter = 2 | ||
let not_letter = 4 | ||
let newline = 8 | ||
let lastnewline = 16 | ||
let search_boundary = 32 | ||
|
||
let from_char = function | ||
(* Should match [cword] definition *) | ||
| 'a'..'z' | 'A'..'Z' | '0'..'9' | '_' | '\170' | '\181' | '\186' | ||
| '\192'..'\214' | '\216'..'\246' | '\248'..'\255' -> | ||
letter | ||
| '\n' -> | ||
not_letter ++ newline | ||
| _ -> | ||
not_letter |
Oops, something went wrong.