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

Highlight classes names and methods names? #119

Open
harg opened this issue Aug 22, 2017 · 5 comments
Open

Highlight classes names and methods names? #119

harg opened this issue Aug 22, 2017 · 5 comments

Comments

@harg
Copy link

harg commented Aug 22, 2017

Is it possible to highlight classes names and methods names?

no_name___-_vim2

@leafgarland
Copy link
Owner

Yes it is possible but only by adding new syntax matches to this syntax. Essentially that means defining regex patterns that will match those class and method names.

@Zabanaa
Copy link

Zabanaa commented Aug 27, 2017

Do you know any resources on how to create syntax files ? I'd love to take care of this.
PS: thanks for the wonderful plugin

@leafgarland
Copy link
Owner

Hi @Zabanaa, a good place to start with any vimscript learnings is Steve Losh's Learn Vimscript the Hardway. There are two chapters in there on syntax highlighting. Also the built-in help, the user-guide :help usr_44 and reference :help syn-define.

I would be very happy to get more contributions on this, thanks.

@harg
Copy link
Author

harg commented Aug 30, 2017

@Zabanaa maybe you can check https://github.com/pangloss/vim-javascript for inspiration

@tommyc38
Copy link

vim's built in typescript syntax highlighter does this. The problem I had with the native solution was that it breaks on template strings (e.g. backticks)...which is why I tried out this plugin. I also notice that =|!|false|true are different colors than what the theming states they should be. This essentially breaks any native themes. There has to be something that isn't mapped correctly.

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

4 participants