ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Ethereum

by davidhq ALL

Ethereum Solidity, Vyper, Yul and StarkNet Cairo language syntaxes

Details

Installs

  • Total 65K
  • Win 28K
  • Mac 25K
  • Linux 12K
Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3
Windows 0 3 2 2 3 2 3 4 5 3 1 2 0 2 4 5 4 1 1 6 2 6 5 4 3 2 1 4 5 2 3 2 1 2 3 2 3 1 2 4 2 4 3 3 1 4
Mac 2 4 2 1 2 2 3 1 2 1 1 2 2 2 1 3 4 1 2 4 1 1 4 1 2 2 5 2 1 4 1 2 1 2 2 1 1 1 2 1 2 1 2 1 3 1
Linux 0 1 0 1 3 0 0 1 0 4 0 4 1 2 0 2 0 2 0 0 2 3 0 2 1 1 2 1 1 0 1 3 1 0 0 3 1 3 2 1 0 1 0 1 1 2

Readme

Source
raw.​githubusercontent.​com

SublimeText syntax highlighting for Solidity, Vyper, Yul and Cairo

Version of syntax that GitHub is using for Solidity grammar and Vyper is in linguist branch. This grammar gives all .sol / .vy files (example) its colors (= does syntax highlighting).

Ethereum

Ethereum is a platform for decentralized applications. Decentralized applications are built with Smart Contracts.

StarkNet

StarkNet is a permissionless decentralized ZK-Rollup operating as an L2 network over Ethereum, where any dApp can achieve unlimited scale for its computation, without compromising Ethereum’s composability and security.

Included grammars

This package contains syntax highlighting for Ethereum's Smart Contract languages Solidity, Vyper, Yul as well as StarkNet Cairo language.

Solidity is the biggest Ethereum language and has similarity to JavaScript. Solidity was initially proposed in August 2014 by dr. Gavin Wood. The language was later developed by the Ethereum project's Solidity team, led by Christian Reitwiessner.

Vyper is a contract-oriented, pythonic programming language that targets the Ethereum Virtual Machine (EVM) as well. It lacks some general features and through this strives to be more secure by default.

Yul is an intermediate EVM programming language that is compiled to bytecode for addressing the needs of different backends. The Solidity compiler has an experimental implementation that uses Yul as an intermediate language.

Cairo is a programming language for writing provable programs, where one party can prove to another that a certain computation was executed correctly. Cairo and similar proof systems can be used to provide scalability to blockchains.

Linguist branch has an implementation with regexes and is used in GitHub. Main branch (= used in sublime package to enable .sol syntax highlighting for SublimeText editor) uses more advanced context stack approach to achieve optimal and more detailed results from what is possible with regex based approach.

Installation in SublimeText editor

  1. SublimeText menu / Preferences / Package Control
  2. Select: Install Package
  3. Type Ethereum and press ENTER
  4. With a .sol / .vy / .cairo file open, select: View -> Syntax (-> Open all with current extension as) -> Ethereum -> Cairo / Solidity / Vyper / Yul
  5. Close and re-open any files to activate the syntax highlighting

This will provide Solidity .sol, Vyper .vy and Cairo .cairo syntax highlighting.

SublimeEthereum on Package Control.

Features

  • Solidity.sublime-syntax: syntax rules for Ethereum Solidity language
    • Ethereum plugin automatically uses Solidity language syntax when you are in a Solidity (.sol) file
    • vscode-solidity is another good grammar implementation, it was originally derived from SublimeEthereum
  • Vyper.YAML-tmLanguage: syntax rules for Ethereum Vyper language
    • Ethereum plugin automatically uses Vyper language syntax when you are in a Vyper (.vy) file
  • Yul.YAML-tmLanguage: syntax rules for Ethereum Yul language
    • Ethereum plugin automatically uses Yul language syntax when you are in a Yul (.yul) or Yul+ (.yulp) file
  • Cairo.YAML-tmLanguage: syntax rules for StarkNet Cairo language
    • Ethereum plugin automatically uses Cairo language syntax when you are in a Cairo (.cairo) file
    • Cairo language grammar is derived from Atom grammar in this repository by GitHub user xshitaka.

License

All of Sublime Ethereum is licensed under the MIT license.

Copyright Ⓒ 2015-2222 uniqpath

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.