comparison src/syntax.c @ 77757:cbb18b4e981b

(skip_chars): Update syntax-table only after we checked that the new location is valid.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 19 May 2007 15:15:19 +0000
parents e90d04cd455a
children d15a774f9796
comparison
equal deleted inserted replaced
77756:7d0f49cdc5da 77757:cbb18b4e981b
1667 if (p <= endp) 1667 if (p <= endp)
1668 break; 1668 break;
1669 p = GPT_ADDR; 1669 p = GPT_ADDR;
1670 stop = endp; 1670 stop = endp;
1671 } 1671 }
1672 UPDATE_SYNTAX_TABLE_BACKWARD (pos - 1);
1672 if (! fastmap[(int) SYNTAX (p[-1])]) 1673 if (! fastmap[(int) SYNTAX (p[-1])])
1673 break; 1674 break;
1674 p--, pos--; 1675 p--, pos--;
1675 UPDATE_SYNTAX_TABLE_BACKWARD (pos - 1);
1676 } 1676 }
1677 } 1677 }
1678 } 1678 }
1679 else 1679 else
1680 { 1680 {