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

Multi-literal strings support #290

Open
k06a opened this issue Mar 20, 2021 · 0 comments
Open

Multi-literal strings support #290

k06a opened this issue Mar 20, 2021 · 0 comments
Labels

Comments

@k06a
Copy link

k06a commented Mar 20, 2021

Description

We need support for multi-literal strings like this:

bytes32 constant public HUMAN_TYPEHASH = keccak256(
    "Human("
    "string name,"
    "string surname,"
    "string street,"
    "address wallet,"
    "uint256 age,"
    "uint256 birth"
    ")"
);

Here is demo repo: https://github.com/k06a/truffle-string-multi-literal

Check Solidity Grammar:
image

Steps to reproduce

  1. git clone "https://github.com/k06a/truffle-string-multi-literal"
  2. cd truffle-string-multi-literal
  3. npm install or yarn
  4. npm lint or yarn lint

Expected behavior

This is valid Solidity code.

Operating System

macOS 10.11.2

Linter version

Solium version 1.2.5

@k06a k06a added the bug label Mar 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant