-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Match dashes/underscores in identifiers #109
Comments
Duplicate issue #86. |
Can you tell me, if what I've tried should basically work? |
@blueyed You need to update def IsIdentifierChar( char ):
return char.isalnum() or char in ['_', '-'] That should help. |
Thanks, @noprompt - that appears to work. |
This works for me too, thanks guys. |
For anyone finding this now, this Gist will patch YouCompleteMe to support |
I changed
IDENTIFIER_REGEX
to include dashes and underscores (in https://github.com/Valloric/YouCompleteMe/blob/master/cpp/ycm/IdentifierUtils.cpp#L37):(It would be great, if it could respect Vim's
iskeyword
setting.)But that appears to need further adjustments somewhere else.. after completing "foo-bar-baz" it still offers "foo-bar-baz" and completes it to "foo-foo-bar-baz".
See also issue #98 (about comments).
The text was updated successfully, but these errors were encountered: