-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(syntax): use syntax-after instead char-syntax to determine buffer…
… syntax Function char-syntax does not take into account the syntax-table text property which might be present in the buffer. Sometimes one character is used in multiple syntax contexts and Emacs solves this by using text properties on specific places to hint what is the true syntax. This was causing subtle bugs where we were using the default syntax info instead of the concrete one placed in the buffer. Fixes #851, #1195.
- Loading branch information
Showing
3 changed files
with
74 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters