Skip to content

fix: Add VALUE to IdentifierOrSoftKey definition in spec docs#140

Open
Ashutosh0x wants to merge 1 commit into
Kotlin:releasefrom
Ashutosh0x:fix/add-value-to-identifier-or-soft-key
Open

fix: Add VALUE to IdentifierOrSoftKey definition in spec docs#140
Ashutosh0x wants to merge 1 commit into
Kotlin:releasefrom
Ashutosh0x:fix/add-value-to-identifier-or-soft-key

Conversation

@Ashutosh0x

Copy link
Copy Markdown

Summary

Add the missing VALUE soft keyword to both the IdentifierOrSoftKey grammar rule and the lexical modifier definitions in syntax.md.

Problem

As reported in #128, the VALUE token is present in KotlinLexer.g4:

  • Line 161: VALUE: 'value'; (lexical modifier definition)
  • Line 302: | VALUE (in IdentifierOrSoftKey rule)

However, it was missing from the specification documentation in docs/src/md/kotlin.core/syntax.md.

Changes

  1. Added VALUE keyword definition (grammar-rule-VALUE) in the lexical modifiers section, after INNER
  2. Added VALUE to the IdentifierOrSoftKey rule, before CONST and SUSPEND

Both match the ordering in KotlinLexer.g4.

Fixes #128

Add the missing VALUE soft keyword to both the IdentifierOrSoftKey
grammar rule and the lexical modifier definitions in syntax.md.

The VALUE token ('value') was already present in KotlinLexer.g4 (line 302
in IdentifierOrSoftKey, line 161 as a lexical modifier) but was missing
from the specification documentation.

Fixes Kotlin#128
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add VALUE to IdentifierOrSoftKey definition

1 participant