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