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

feat: solidity.vim of syntax, indent, ftplugin #11240

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions runtime/ftplugin/solidity.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
" Vim filetype plugin file
" Language: Solidity
" Previous Maintainer: Cothi (jiungdev@gmail.com)
" Original author: tomlion (https://github.com/tomlion/vim-solidity)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simply using Author: here is more 'standard' and is recognised by the syntax highlighters.

" Last Changed: 2022 Sep 27

setlocal commentstring=//\ %s
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

b:undo_ftplugin needs to be set. See :help undo_ftplugin

Setting 'comments' as well while you're here would be a good idea.

10 changes: 5 additions & 5 deletions runtime/indent/solidity.vim
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
" Vim indent file
" Language: Solidity
" Acknowledgement: Based off of vim-javascript
" Maintainer: Cothi (jiungdev@gmail.com)
" Original Author: tomlion (https://github.com/tomlion/vim-solidity)
" Last Changed: 2022 Sep 27
" Language: Solidity
" Acknowledgement: Based off of vim-javascript
" Maintainer: Cothi (jiungdev@gmail.com)
" Original author: tomlion (https://github.com/tomlion/vim-solidity)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simply using Author: here is more 'standard' and is recognised by the syntax highlighters.

" Last Changed: 2022 Sep 27
"
" 0. Initialization {{{1
" =================
Expand Down
10 changes: 5 additions & 5 deletions runtime/syntax/solidity.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
" Vim syntax file
" Language: Solidity
" Maintainer: Cothi (jiungdev@gmail.com)
" Original Author: tomlion (https://github.com/tomlion/vim-solidity/blob/master/syntax/solidity.vim)
" Last Changed: 2022 Sep 27
" Vim syntax support file
" Language: Solidity
" Maintainer: Cothi (jiungdev@gmail.com)
" Original author: tomlion (https://github.com/tomlion/vim-solidity/blob/master/syntax/solidity.vim)
" Last Changed: 2022 Sep 27
"
" Additional contributors:
" Modified by thesis (https://github.com/thesis/vim-solidity/blob/main/indent/solidity.vim)
Expand Down