Skip to content

Commit

Permalink
Move pragma-specific keywords under dedicated topic
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Nov 16, 2023
1 parent 3e4d2b6 commit b2473b1
Showing 1 changed file with 15 additions and 24 deletions.
39 changes: 15 additions & 24 deletions crates/solidity/inputs/language/src/definition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,21 @@ codegen_language_macros::compile!(Language(
Atom("*")
]))
)]
),
Keyword(
name = SolidityKeyword,
identifier = Identifier,
definitions = [KeywordDefinition(value = Atom("solidity"))]
),
Keyword(
name = ExperimentalKeyword,
identifier = Identifier,
definitions = [KeywordDefinition(value = Atom("experimental"))]
),
Keyword(
name = AbicoderKeyword,
identifier = Identifier,
definitions = [KeywordDefinition(value = Atom("abicoder"))]
)
]
),
Expand Down Expand Up @@ -407,14 +422,6 @@ codegen_language_macros::compile!(Language(
Topic(
title = "Keywords",
items = [
Keyword(
name = AbicoderKeyword,
identifier = Identifier,
definitions = [KeywordDefinition(
reserved = Never,
value = Atom("abicoder")
)]
),
Keyword(
name = AbstractKeyword,
identifier = Identifier,
Expand Down Expand Up @@ -661,14 +668,6 @@ codegen_language_macros::compile!(Language(
identifier = Identifier,
definitions = [KeywordDefinition(value = Atom("event"))]
),
Keyword(
name = ExperimentalKeyword,
identifier = Identifier,
definitions = [KeywordDefinition(
reserved = Never,
value = Atom("experimental")
)]
),
Keyword(
name = ExternalKeyword,
identifier = Identifier,
Expand Down Expand Up @@ -1314,14 +1313,6 @@ codegen_language_macros::compile!(Language(
value = Atom("sizeof")
)]
),
Keyword(
name = SolidityKeyword,
identifier = Identifier,
definitions = [KeywordDefinition(
reserved = Never,
value = Atom("solidity")
)]
),
Keyword(
name = StaticKeyword,
identifier = Identifier,
Expand Down

0 comments on commit b2473b1

Please sign in to comment.