Fix line breaks to follow Emacs conventions.
[bpt/emacs.git] / src / syntax.c
index e1fb753..272e9cf 100644 (file)
@@ -673,7 +673,7 @@ back_comment (from, from_byte, stop, comnested, comstyle, charpos_ptr, bytepos_p
     {
       from = comstart_pos;
       from_byte = comstart_byte;
-      /* Globals are correct now.  */
+      UPDATE_SYNTAX_TABLE_FORWARD (from - 1);
     }
   else
     {
@@ -1728,12 +1728,12 @@ skip_chars (forwardp, syntaxp, string, lim, handle_iso_classes)
                      if (negate)
                        break;
                      else
-                       goto fwd_ok;
+                       goto fwd_unibyte_ok;
                    }
 
                  if (!fastmap[*p])
                    break;
-
+               fwd_unibyte_ok:
                  p++, pos++;
                }
          }
@@ -1801,12 +1801,12 @@ skip_chars (forwardp, syntaxp, string, lim, handle_iso_classes)
                      if (negate)
                        break;
                      else
-                       goto fwd_ok;
+                       goto back_unibyte_ok;
                    }
 
                  if (!fastmap[p[-1]])
                    break;
-
+               back_unibyte_ok:
                  p--, pos--;
                }
          }