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

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

wants to merge 5 commits into from

Conversation

cothi
Copy link
Contributor

@cothi cothi commented Sep 27, 2022

hi, I looked it up and found that the syntax solidity file was missing. How about supporting solidity syntax?

@brammool
Copy link
Contributor

Is this one better than the previous PR?

@brammool
Copy link
Contributor

The file does not set b:current_syntax

@zeertzjq
Copy link
Member

This one seems to be older. There is also a typo in header.

@cothi
Copy link
Contributor Author

cothi commented Sep 27, 2022

There was a bit of confusion about license. So I made a mistake, then I PR it again.
I corrected the source code typo, and I added a modified source code
, so please check it out

thank you

@k-takata
Copy link
Member

The original repository (https://github.com/tomlion/vim-solidity) has not only the syntax file but also the indent file and the ftplugin file.
Are you going to take over the maintenance of the syntax file only?

@cothi
Copy link
Contributor Author

cothi commented Sep 27, 2022

I think It would be good to add them together.

I added the necessary file for supporting solidity (indent, ftplugin)

thx

@cothi cothi changed the title feat: solidity.vim of syntax feat: solidity.vim of syntax, indent, ftplugin Sep 28, 2022
@yegappan yegappan added this to the vim-9.1 milestone Aug 13, 2023
Copy link
Contributor

@dkearns dkearns left a comment

Choose a reason for hiding this comment

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

The indent plugin needs to have b:undo_indent set as well to undo the setting of 'smartindent', 'indentexpr' and 'indentkeys'. See :help undo_indent for details.

Could you please also add yourself to https://github.com/vim/vim/blob/master/.github/CODEOWNERS?

" Original author: tomlion (https://github.com/tomlion/vim-solidity)
" 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.

" 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.

" 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.

@chrisbra
Copy link
Member

@cothi any updates please?

dkearns added a commit to dkearns/vim that referenced this pull request Aug 21, 2023
dkearns pushed a commit to dkearns/vim that referenced this pull request Aug 21, 2023
Set undo_{ftplugin,indent}

Finalises vim#11240
dkearns pushed a commit to dkearns/vim that referenced this pull request Aug 21, 2023
Set undo_{ftplugin,indent}

Finalises vim#11240
@chrisbra chrisbra closed this in e34b51e Aug 22, 2023
clason added a commit to clason/neovim that referenced this pull request Aug 23, 2023
runtime(solidity): add new ftplugin (vim/vim#12877)

Set undo_{ftplugin,indent}

closes vim/vim#11240

vim/vim@e34b51e

Co-authored-by: dkearns <dougkearns@gmail.com>
Co-authored-by: cothi <jiungdev@gmail.com>
clason added a commit to neovim/neovim that referenced this pull request Aug 24, 2023
runtime(solidity): add new ftplugin (vim/vim#12877)

Set undo_{ftplugin,indent}

closes vim/vim#11240

vim/vim@e34b51e

Co-authored-by: dkearns <dougkearns@gmail.com>
Co-authored-by: cothi <jiungdev@gmail.com>
Konfekt pushed a commit to Konfekt/vim that referenced this pull request Aug 30, 2023
Set undo_{ftplugin,indent}

closes vim#11240

Co-authored-by: cothi <jiungdev@gmail.com>
chrisbra pushed a commit to chrisbra/vim that referenced this pull request Sep 22, 2023
Set undo_{ftplugin,indent}

closes vim#11240

Co-authored-by: cothi <jiungdev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants