skip-syntax-forward

skip-syntax-forward is a built-in function in `C source code'.

(skip-syntax-forward SYNTAX &optional LIM)

Move point forward across chars in specified syntax classes.
SYNTAX is a string of syntax code characters.
Stop before a char whose syntax is not in SYNTAX, or at position LIM.
If SYNTAX starts with ^, skip characters whose syntax is NOT in SYNTAX.
This function returns the distance traveled, either zero or positive.