-
Notifications
You must be signed in to change notification settings - Fork 211
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
_
is treated as word syntax rather than symbol syntax
#431
Comments
This is the same bug that causes Edit: (defvar go-mode-syntax-table
(let ((st (make-syntax-table)))
;; snip
;; TODO make _ a symbol constituent now that xemacs is gone
(modify-syntax-entry ?_ "w" st)
st)
"Syntax table for Go mode.") Changing Edit 2: I'm an idiot, I set |
_
in named return_
in identifiers
_
in identifiers_
is treated as word syntax rather than symbol syntax
And fix all of the regexps accordingly. Fixes dominikh#431
And fix all of the regexps accordingly. Fixes dominikh#431
Read comments for context.
Old title: Syntax highlighting doesn't support
_
in named returnOld description:
The syntax highlighting fails on the
_
in cases like:The text was updated successfully, but these errors were encountered: