Skip to content

Commit 95b8245

Browse files
authored
Move const to the keyword list (#66)
Use of the `const` keyword is already documented in the [Provided Types](https://github.com/fsharp/fslang-spec/blob/main/spec/provided-types.md#static-parameters) chapter. This PR just moves it from a reserved keyword to a keyword.
1 parent cd64272 commit 95b8245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/lexical-analysis.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ The following identifiers are treated as keywords of the F# language:
146146

147147
```fsgrammar
148148
token ident-keyword =
149-
abstract and as assert base begin class default delegate do done
149+
abstract and as assert base begin class const default delegate do done
150150
downcast downto elif else end exception extern false finally fixed for
151151
fun function global if in inherit inline interface internal lazy let
152152
match member module mutable namespace new null of open or
@@ -158,7 +158,7 @@ The following identifiers are reserved for future use:
158158

159159
```fsgrammar
160160
token reserved-ident-keyword =
161-
break checked component const constraint
161+
break checked component constraint
162162
continue fori include
163163
mixin parallel params process protected pure
164164
sealed tailcall trait virtual

0 commit comments

Comments
 (0)