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

Please provide symbol lookup for the identifiers used amongst syn match, syn region, and syn cluster. #201

Open
egberts opened this issue Sep 6, 2024 · 0 comments

Comments

@egberts
Copy link

egberts commented Sep 6, 2024

Often times, the syntax spec file (ones in the .vim/syntax directory, have hundreds, if not thousands of identifiers.

And having the support of the symbol table would greatly cut down lookup efforts (instead of currently doing the selection-word, cut-n-paste into a search bar).

The symbol definition of such identifiers are defined in:

syntax match this_symbol_name ...
syntax region this_symbol_name ...
syntax cluster this_cluster_symbol_name ...

And are easily referenced after keywords like:

\ contains=this_symbol_name[,next_symbol_name ...]
\ contains=@this_cluster_symbol_name[,next_symbol_name ...]
\ nextgroup=this_symbol_name[,next_symbol_name ...]
\ containedby=this_symbol_name[,next_symbol_name ...]

Support for this will greatly assist the large data science community with easier and even simplistic syntax highlight used against high-speed data streaming outputs.
For large working examples:

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