From c65a386a09265e7578c589db192cc01fa668fcf6 Mon Sep 17 00:00:00 2001 From: Andy Chu Date: Sun, 19 Nov 2017 15:11:10 -0800 Subject: [PATCH] stub --- native/lex.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/native/lex.c b/native/lex.c index d42d1cd1f0..1db18e5208 100755 --- a/native/lex.c +++ b/native/lex.c @@ -286,7 +286,16 @@ func_regex_match(PyObject *self, PyObject *args) { } } +static PyObject * +func_FindLongestMatch(PyObject *self, PyObject *args) { + return NULL; +} + +// TODO: enlist core/id_kind_gen and osh/lex_gen.py + PyMethodDef methods[] = { + {"FindLongestMatch", func_FindLongestMatch, METH_VARARGS, + "(lexer mode, line, pos) -> (end_index, tok_type, tok_val)."}, {"fnmatch", func_fnmatch, METH_VARARGS, "Return whether a string matches a pattern."}, // Python's glob doesn't have char classes