-
Notifications
You must be signed in to change notification settings - Fork 119
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
syntax entry for dollar sign #320
Comments
[Note] shell-script-mode sets I'll check other programming languages modes. |
|
Thank you @syohex! I checked your modification with avy-goto-word-1 and it works as expected now. |
I have merged |
@syohex I noticed this change causes Thanks! |
@mallt Is this what you expected? |
I was just thinking that if |
In practice, $ is just part of the variable name, which is more advantageous than considering it as “Expression prefixes”. If you want to be compatible with older syntax tables, add the following code to your own .emacs file (init.el): (with-eval-after-load "php-mode" (modify-syntax-entry ?$ "'" php-mode-syntax-table)) Past discussions are in the following issues: #320 #564
While using avy-goto-word-1 (https://github.com/abo-abo/avy) I noticed I couldn't jump to the first letter of php variables. After setting the dollar sign as symbol constituent with
(modify-syntax-entry ?$ "_" php-mode-syntax-table)
avy-goto-word-1 starting working as expected.
Would this be a correct addition to the php-mode-syntax-table?
The text was updated successfully, but these errors were encountered: