Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use syntax-propertize-function #1039

Closed
gracjan opened this issue Dec 27, 2015 · 0 comments
Closed

Use syntax-propertize-function #1039

gracjan opened this issue Dec 27, 2015 · 0 comments

Comments

@gracjan
Copy link
Contributor

gracjan commented Dec 27, 2015

Emacs 24 and later has syntax-propertize-function that can put non-default text properties on characters in a buffer depending on context they appear in. This is needed to properly handle apostrophe in its many usages (#549) and could simplify other cases like:

  • a dash sometimes starting a comment
  • a backslash inside strings and gap rule

For now haskell-mode uses old mechanism of font-lock-syntactic-keywords that is not expressive enough to handle Haskell cases. Dropping font-lock-syntactic-keywords means dropping Emacs 23 support as Emacs 23 does not have syntax-propertize-function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant