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

add new keywords to vim-vyper #5

Merged
merged 2 commits into from
Jul 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions syntax/vyper.vim
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ syn keyword vyperNatspec @title @licence @author @notice @dev @param @return @ve
syn keyword vyperImport implements from import
syn keyword vyperConstant ZERO_ADDRESS EMPTY_BYTES32 MAX_INT128 MIN_INT128 MAX_DECIMAL MIN_DECIMAL MAX_UINT256
syn keyword vyperEnvironment msg tx block
syn keyword vyperStatement struct event interface def nextgroup=vyperFunction skipwhite
syn keyword vyperStatement enum struct event interface def nextgroup=vyperFunction skipwhite
syn keyword vyperRepeat for while in
syn keyword vyperConditional if else elif
syn keyword vyperSpecial return pass continue break log assert raise
syn keyword vyperOperator and not or
syn keyword vyperBoolean True False
syn keyword vyperStatement external internal nonreentrant pure view nonpayable payable
syn keyword vyperTypes address bool decimal num bytes32 int128 uint256
syn keyword vyperTypes address bool decimal
syn keyword vyperTypes bytes1 bytes2 bytes3 bytes4 bytes5 bytes6 bytes7 bytes8 bytes9 bytes10 bytes11 bytes12 bytes13 bytes14 bytes15 bytes16 bytes17 bytes18 bytes19 bytes20 bytes21 bytes22 bytes23 bytes24 bytes25 bytes26 bytes27 bytes28 bytes29 bytes30 bytes31 bytes32
syn keyword vyperTypes int8 int16 int24 int32 int40 int48 int56 int64 int72 int80 int88 int96 int104 int112 int120 int128 int136 int144 int152 int160 int168 int176 int184 int192 int200 int208 int216 int224 int232 int240 int248 int256
syn keyword vyperTypes uint8 uint16 uint24 uint32 uint40 uint48 uint56 uint64 uint72 uint80 uint88 uint96 uint104 uint112 uint120 uint128 uint136 uint144 uint152 uint160 uint168 uint176 uint184 uint192 uint200 uint208 uint216 uint224 uint232 uint240 uint248 uint256
syn keyword vyperTypes Bytes String HashMap
syn keyword vyperBuiltin as_unitless_number as_wei_value bitwise_and bitwise_not bitwise_or bitwise_xor blockhash ceil concat
syn keyword vyperBuiltin convert create_with_code_of ecadd ecmul ecrecover extract32 floor keccak256 len max method_id min raw_call
Expand Down