vim-alloy icon indicating copy to clipboard operation
vim-alloy copied to clipboard

Update alloy.vim - add alloyAttribute, alloyBrackets, alloyParentheses, alloyPeriod, and alloyOperator

Open jessebot opened this issue 4 months ago • 0 comments

Hoi!

Thanks for this plugin, it was very helpful! I've added a number of little syntax matches such as:

  • alloyBlockBrace
  • alloyParentheses
  • alloyBrackets
  • alloyOperator
  • alloyPeriod
  • alloyAttribute

There is also an attempt for alloyQuotes, but it is commented out, because I can't figure out how to make it work, but maybe someone else can 🤷

Finally, I attempted to add a fold on blocks (using alloyBlockBrace), but couldn't get it work either. Everything else is tested and working though.

syntax highlighting example showing all the above syntax matches highlighted using the spacechalk theme

I use spacechalk.nvim for my theme, but here's the highlights I used there for the above screenshot if anyone is curious:

hi def link alloyString     String
hi def link alloyEscape     Special
hi def link alloyInt        Number
hi def link alloyFloat      Number
hi def link alloyConstant   Constant
hi def link alloyComment    Comment
hi def link alloyTodo       Todo

highlight alloyBlockName    guifg=#6DF2E5 guibg=#323232
highlight alloyBlockLabel   guifg=#C1FF87 cterm=italic gui=italic
highlight alloyBlockBrace   guifg=#f289f9
highlight alloyParentheses  guifg=#7aa2f7
highlight alloyBrackets     guifg=#ff8d87
highlight alloyOperator     guifg=#f7fb53
highlight alloyPeriod       guifg=#d092fc
highlight alloyAttribute    guifg=#5cc9fd

If this repo is inactive, and a community member finds this, please feel free to come and contribute back to jessebot/vim-alloy or jessebot/vim-alloy 💙 ✨

jessebot avatar Aug 19 '25 20:08 jessebot